diff options
Diffstat (limited to 'src/mongo/db/restapi.cpp')
-rw-r--r-- | src/mongo/db/restapi.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/restapi.cpp b/src/mongo/db/restapi.cpp index 8a1863a56dc..f582bf33a3b 100644 --- a/src/mongo/db/restapi.cpp +++ b/src/mongo/db/restapi.cpp @@ -273,7 +273,7 @@ namespace mongo { } restHandler; bool RestAdminAccess::haveAdminUsers(OperationContext* txn) const { - AuthorizationSession* authzSession = txn->getClient()->getAuthorizationSession(); + AuthorizationSession* authzSession = AuthorizationSession::get(txn->getClient()); return authzSession->getAuthorizationManager().hasAnyPrivilegeDocuments(txn); } |