diff options
Diffstat (limited to 'src/mongo/s/commands/cluster_remove_shard_from_zone_cmd.cpp')
-rw-r--r-- | src/mongo/s/commands/cluster_remove_shard_from_zone_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/s/commands/cluster_remove_shard_from_zone_cmd.cpp b/src/mongo/s/commands/cluster_remove_shard_from_zone_cmd.cpp index 6ba4dc36278..faf1085f72d 100644 --- a/src/mongo/s/commands/cluster_remove_shard_from_zone_cmd.cpp +++ b/src/mongo/s/commands/cluster_remove_shard_from_zone_cmd.cpp @@ -87,7 +87,7 @@ public: Status checkAuthForCommand(Client* client, const std::string& dbname, - const BSONObj& cmdObj) override { + const BSONObj& cmdObj) const override { if (!AuthorizationSession::get(client)->isAuthorizedForActionsOnResource( ResourcePattern::forExactNamespace(ShardType::ConfigNS), ActionType::update)) { return Status(ErrorCodes::Unauthorized, "Unauthorized"); |