diff options
author | Spencer T Brody <spencer@10gen.com> | 2012-12-19 16:34:22 -0500 |
---|---|---|
committer | Spencer T Brody <spencer@10gen.com> | 2012-12-20 15:53:31 -0500 |
commit | 09acb35f3d09621ce2df9b099ddcb5db14fa0e1e (patch) | |
tree | f76938cb6e9403e69fe494ae601f684c2fbb7ab2 /src/mongo/db/client_basic.cpp | |
parent | 458796c7cca9f299ee2f23b4dec25162d3235b29 (diff) | |
download | mongo-09acb35f3d09621ce2df9b099ddcb5db14fa0e1e.tar.gz |
SERVER-7572 Update auth checking of serverStatus sub-sections
Diffstat (limited to 'src/mongo/db/client_basic.cpp')
-rw-r--r-- | src/mongo/db/client_basic.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/client_basic.cpp b/src/mongo/db/client_basic.cpp index 3312fd1846b..33185b5aae1 100644 --- a/src/mongo/db/client_basic.cpp +++ b/src/mongo/db/client_basic.cpp @@ -41,11 +41,11 @@ namespace mongo { _authenticationSession.swap(other); } - bool ClientBasic::hasAuthorizationManager() { + bool ClientBasic::hasAuthorizationManager() const { return _authorizationManager.get(); } - AuthorizationManager* ClientBasic::getAuthorizationManager() { + AuthorizationManager* ClientBasic::getAuthorizationManager() const { massert(16481, "No AuthorizationManager has been set up for this connection", hasAuthorizationManager()); |