summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/repair_cursor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/commands/repair_cursor.cpp')
-rw-r--r--src/mongo/db/commands/repair_cursor.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mongo/db/commands/repair_cursor.cpp b/src/mongo/db/commands/repair_cursor.cpp
index 69ded443ec6..1390b0281b3 100644
--- a/src/mongo/db/commands/repair_cursor.cpp
+++ b/src/mongo/db/commands/repair_cursor.cpp
@@ -109,6 +109,7 @@ public:
auto pinnedCursor = collection->getCursorManager()->registerCursor(
{std::move(exec),
ns,
+ AuthorizationSession::get(opCtx->getClient())->getAuthenticatedUserNames(),
opCtx->recoveryUnit()->isReadingFromMajorityCommittedSnapshot(),
cmdObj});