diff options
Diffstat (limited to 'src/mongo/s/commands/cluster_update_zone_key_range_cmd.cpp')
-rw-r--r-- | src/mongo/s/commands/cluster_update_zone_key_range_cmd.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/s/commands/cluster_update_zone_key_range_cmd.cpp b/src/mongo/s/commands/cluster_update_zone_key_range_cmd.cpp index 197363e9173..eaf3fc21739 100644 --- a/src/mongo/s/commands/cluster_update_zone_key_range_cmd.cpp +++ b/src/mongo/s/commands/cluster_update_zone_key_range_cmd.cpp @@ -90,10 +90,10 @@ public: return "assigns/remove a range of a sharded collection to a zone"; } - Status checkAuthForCommand(Client* client, - const std::string& dbname, - const BSONObj& cmdObj) const final { - auto* as = AuthorizationSession::get(client); + Status checkAuthForOperation(OperationContext* opCtx, + const DatabaseName&, + const BSONObj&) const final { + auto* as = AuthorizationSession::get(opCtx->getClient()); if (as->isAuthorizedForActionsOnResource(ResourcePattern::forClusterResource(), ActionType::enableSharding)) { |