diff options
author | Spencer T Brody <spencer@10gen.com> | 2013-06-05 10:53:16 -0400 |
---|---|---|
committer | Spencer T Brody <spencer@10gen.com> | 2013-06-05 11:52:05 -0400 |
commit | 7d37be060bd7db332ebeade1e1c0cf53d8b00cb3 (patch) | |
tree | 07875d15a52f98080e109acdcbf131dd0046f089 /src/mongo/db/commands/isself.cpp | |
parent | e0c8f9047f55ccfc1012c47689871d519f7f6dc0 (diff) | |
download | mongo-7d37be060bd7db332ebeade1e1c0cf53d8b00cb3.tar.gz |
SERVER-9518 Make all methods on AuthorizationManager non-static
Diffstat (limited to 'src/mongo/db/commands/isself.cpp')
-rw-r--r-- | src/mongo/db/commands/isself.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/commands/isself.cpp b/src/mongo/db/commands/isself.cpp index a33c0f8e7a7..cdc46f94a12 100644 --- a/src/mongo/db/commands/isself.cpp +++ b/src/mongo/db/commands/isself.cpp @@ -24,6 +24,7 @@ #include "mongo/db/auth/action_set.h" #include "mongo/db/auth/action_type.h" #include "mongo/db/auth/authorization_manager.h" +#include "mongo/db/auth/authorization_manager_global.h" #include "mongo/db/auth/privilege.h" #include "mongo/db/jsobj.h" #include "../../util/net/listen.h" @@ -243,7 +244,7 @@ namespace mongo { return false; } - if (AuthorizationManager::isAuthEnabled() && !cmdLine.keyFile.empty() ) { + if (getGlobalAuthorizationManager()->isAuthEnabled() && !cmdLine.keyFile.empty() ) { if (!conn.auth("local", internalSecurity.user, internalSecurity.pwd, errmsg, false)) { return false; } |