diff options
author | Sara Golemon <sara.golemon@mongodb.com> | 2022-06-28 17:20:38 -0500 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-07-25 22:04:17 +0000 |
commit | 9fb8cf43c570e4c1696df45bfced81d81f1f9afa (patch) | |
tree | db027f2a058d8fc903b1316a2bb54ac31703afc3 /src/mongo/db | |
parent | a4241e43da416bed4e3d7aec9a9a0a94dd6d5ec8 (diff) | |
download | mongo-9fb8cf43c570e4c1696df45bfced81d81f1f9afa.tar.gz |
SERVER-66651 restore builtin role needs applyOps permissions
(cherry picked from commit 0ba2a32577ed1d8b2bcf33ca195dce5516a484be)
Diffstat (limited to 'src/mongo/db')
-rw-r--r-- | src/mongo/db/auth/builtin_roles.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mongo/db/auth/builtin_roles.cpp b/src/mongo/db/auth/builtin_roles.cpp index 2b0c63cb798..60471ca0a56 100644 --- a/src/mongo/db/auth/builtin_roles.cpp +++ b/src/mongo/db/auth/builtin_roles.cpp @@ -687,6 +687,8 @@ void addRestorePrivileges(PrivilegeVector* privileges) { // Need to be able to set and bypass write blocking mode for C2C replication ActionType::bypassWriteBlockingMode, ActionType::setUserWriteBlockMode, + // Needed for `mongorestore --preserveUUID` + ActionType::applyOps, })); } |