summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/lock_info.cpp
diff options
context:
space:
mode:
authorVincent Do <vincent.do@mongodb.com>2016-05-27 11:59:16 -0400
committerVincent Do <vincent.do@mongodb.com>2016-05-27 12:14:41 -0400
commit0c646e05b18f24037bf801a29af6f7f8b814ab87 (patch)
treef79bea713f97abf8153091de581b3f1e80e112b8 /src/mongo/db/commands/lock_info.cpp
parentafbdaca2a1353c7a5103dc315d7d635acd437243 (diff)
downloadmongo-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.cpp10
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,