summaryrefslogtreecommitdiff
path: root/src/mongo/db/dbwebserver.cpp
diff options
context:
space:
mode:
authorShreyas Kalyan <shreyas.kalyan@10gen.com>2019-02-28 13:41:40 -0500
committerShreyas Kalyan <shreyas.kalyan@10gen.com>2019-03-04 15:44:09 -0500
commit447847d93d6e0a21b018d5df45528e815c7c13d8 (patch)
tree02b7857e766fa85730a61b4b189d4cc7d48d8bfd /src/mongo/db/dbwebserver.cpp
parentbede0e9b7afee4bb30025b1ffc3e22763aec9e93 (diff)
SERVER-39058 Synchronize user set modification in AuthorizationSession with Clientr3.4.20-rc0r3.4.20
(cherry picked from commit a9277e874039f32ce0d848fcdfb10de705c96fd9)
Diffstat (limited to 'src/mongo/db/dbwebserver.cpp')
-rw-r--r--src/mongo/db/dbwebserver.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/dbwebserver.cpp b/src/mongo/db/dbwebserver.cpp
index 50fa68a8176..26483994632 100644
--- a/src/mongo/db/dbwebserver.cpp
+++ b/src/mongo/db/dbwebserver.cpp
@@ -495,7 +495,7 @@ bool DbWebServer::_allowed(OperationContext* txn,
}
if (from.isLocalHost() && !_webUsers->haveAdminUsers(txn)) {
- authSess->grantInternalAuthorization();
+ authSess->grantInternalAuthorization(txn);
return true;
}