summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/connections.h
diff options
context:
space:
mode:
authorAndy Schwerin <schwerin@10gen.com>2013-10-06 13:47:22 -0400
committerAndy Schwerin <schwerin@10gen.com>2013-10-06 16:25:25 -0400
commit3a122656855ca33ee3ee84744b6d413ed30ade04 (patch)
tree3073cec68964d7553fc882d472094c8466c41148 /src/mongo/db/repl/connections.h
parent4f481600f817f5d3c6d2c1cee74e3c133c453681 (diff)
downloadmongo-3a122656855ca33ee3ee84744b6d413ed30ade04.tar.gz
SERVER-10670 Make isAuthEnabled a member rather than static function of AuthorizationManager.
It should have been from the beginning, and fixing it makes it easier to write tests.
Diffstat (limited to 'src/mongo/db/repl/connections.h')
-rw-r--r--src/mongo/db/repl/connections.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/repl/connections.h b/src/mongo/db/repl/connections.h
index de564345e38..d0ae0411971 100644
--- a/src/mongo/db/repl/connections.h
+++ b/src/mongo/db/repl/connections.h
@@ -33,6 +33,7 @@
#include <map>
#include "mongo/db/auth/authorization_manager.h"
+#include "mongo/db/auth/authorization_manager_global.h"
#include "mongo/db/auth/security_key.h"
#include "mongo/db/repl/rs.h" // extern Tee* rslog
@@ -140,7 +141,7 @@ namespace mongo {
// or our key file has to change. if our key file has to change, we'll
// be rebooting. if their file has to change, they'll be rebooted so the
// connection created above will go dead, reconnect, and reauth.
- if (AuthorizationManager::isAuthEnabled()) {
+ if (getGlobalAuthorizationManager()->isAuthEnabled()) {
return authenticateInternalUser(connInfo->cc.get());
}