summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/lock_info.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/commands/lock_info.cpp')
-rw-r--r--src/mongo/db/commands/lock_info.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/commands/lock_info.cpp b/src/mongo/db/commands/lock_info.cpp
index 3e16e220e39..437813b2447 100644
--- a/src/mongo/db/commands/lock_info.cpp
+++ b/src/mongo/db/commands/lock_info.cpp
@@ -67,7 +67,7 @@ public:
Status checkAuthForCommand(Client* client,
const std::string& dbname,
- const BSONObj& cmdObj) final {
+ const BSONObj& cmdObj) const final {
bool isAuthorized = AuthorizationSession::get(client)->isAuthorizedForActionsOnResource(
ResourcePattern::forClusterResource(), ActionType::serverStatus);
return isAuthorized ? Status::OK() : Status(ErrorCodes::Unauthorized, "Unauthorized");