summaryrefslogtreecommitdiff
path: root/src/mongo/db/security_commands.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/security_commands.cpp')
-rw-r--r--src/mongo/db/security_commands.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/mongo/db/security_commands.cpp b/src/mongo/db/security_commands.cpp
index ad5bdbda664..c7575cb0116 100644
--- a/src/mongo/db/security_commands.cpp
+++ b/src/mongo/db/security_commands.cpp
@@ -180,17 +180,8 @@ namespace mongo {
principal->setImplicitPrivilegeAcquisition(true);
authorizationManager->addAuthorizedPrincipal(principal);
- bool readOnly = userObj["readOnly"].trueValue();
- // TODO: remove this once all auth checking goes through AuthorizationManager instead of
- // AuthenticationInfo
- authenticate(dbname, user, readOnly );
-
-
result.append( "dbname" , dbname );
result.append( "user" , user );
- result.appendBool( "readOnly" , readOnly );
-
-
return true;
}