summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/kill_op.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/commands/kill_op.cpp')
-rw-r--r--src/mongo/db/commands/kill_op.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/commands/kill_op.cpp b/src/mongo/db/commands/kill_op.cpp
index f96f3692ecd..1e11fb67466 100644
--- a/src/mongo/db/commands/kill_op.cpp
+++ b/src/mongo/db/commands/kill_op.cpp
@@ -93,7 +93,7 @@ public:
if (opCtx && opCtx->getOpID() == opId) {
if (authzSession->isAuthorizedForActionsOnResource(
ResourcePattern::forClusterResource(), ActionType::killop) ||
- authzSession->isCoauthorizedWithClient(opClient)) {
+ authzSession->isCoauthorizedWithClient(opClient, lk)) {
return {std::make_tuple(std::move(lk), opCtx)};
}
break;