diff options
author | Hari Khalsa <hkhalsa@10gen.com> | 2014-08-26 16:55:17 -0400 |
---|---|---|
committer | Hari Khalsa <hkhalsa@10gen.com> | 2014-09-04 15:31:53 -0400 |
commit | 722b37791dc3adececd74894ccb61e3da64ea94e (patch) | |
tree | a68e9b61f4b59716d4c2fcd7b17519a1f19bc60d /src/mongo/db/restapi.cpp | |
parent | c14c1f113d56da4e32ac13a123028c916f0c8cff (diff) | |
download | mongo-722b37791dc3adececd74894ccb61e3da64ea94e.tar.gz |
SERVER-14668 remove some usages of cc()
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 c1d5c329773..e419aa0ccf9 100644 --- a/src/mongo/db/restapi.cpp +++ b/src/mongo/db/restapi.cpp @@ -265,7 +265,7 @@ namespace mongo { } restHandler; bool RestAdminAccess::haveAdminUsers(OperationContext* txn) const { - AuthorizationSession* authzSession = cc().getAuthorizationSession(); + AuthorizationSession* authzSession = txn->getClient()->getAuthorizationSession(); return authzSession->getAuthorizationManager().hasAnyPrivilegeDocuments(txn); } |