diff options
author | Vincent Do <vincent.do@mongodb.com> | 2016-05-27 11:59:16 -0400 |
---|---|---|
committer | Vincent Do <vincent.do@mongodb.com> | 2016-05-27 12:14:41 -0400 |
commit | 0c646e05b18f24037bf801a29af6f7f8b814ab87 (patch) | |
tree | f79bea713f97abf8153091de581b3f1e80e112b8 /src/mongo/db/commands/lock_info.cpp | |
parent | afbdaca2a1353c7a5103dc315d7d635acd437243 (diff) | |
download | mongo-0c646e05b18f24037bf801a29af6f7f8b814ab87.tar.gz |
Revert "SERVER-24160 Add auth and auth test for lockInfo command"
This reverts commit cbb1f07f40d8487bfeb5dfce4ccfb5d461d9a2f6.
Diffstat (limited to 'src/mongo/db/commands/lock_info.cpp')
-rw-r--r-- | src/mongo/db/commands/lock_info.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/mongo/db/commands/lock_info.cpp b/src/mongo/db/commands/lock_info.cpp index a025a34a7be..d689dd2acea 100644 --- a/src/mongo/db/commands/lock_info.cpp +++ b/src/mongo/db/commands/lock_info.cpp @@ -30,8 +30,6 @@ #include <map> -#include "mongo/db/auth/action_type.h" -#include "mongo/db/auth/authorization_session.h" #include "mongo/db/client.h" #include "mongo/db/commands.h" #include "mongo/db/concurrency/lock_manager_defs.h" @@ -69,14 +67,6 @@ public: help << "show all lock info on the server"; } - Status checkAuthForCommand(ClientBasic* client, - const std::string& dbname, - const BSONObj& cmdObj) final { - bool isAuthorized = AuthorizationSession::get(client)->isAuthorizedForActionsOnResource( - ResourcePattern::forClusterResource(), ActionType::lockInfo); - return isAuthorized ? Status::OK() : Status(ErrorCodes::Unauthorized, "Unauthorized"); - } - CmdLockInfo() : Command("lockInfo", true) {} bool run(OperationContext* txn, |