mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 01:21:03 +01:00
SERVER-17135 Add permissions on config.settings to backup auth role
This commit is contained in:
parent
7d8adb6da8
commit
44a8c494fc
@ -544,6 +544,14 @@ namespace {
|
||||
Privilege(ResourcePattern::forExactNamespace(
|
||||
AuthorizationManager::versionCollectionNamespace),
|
||||
ActionType::find));
|
||||
|
||||
ActionSet configSettingsActions;
|
||||
configSettingsActions << ActionType::insert << ActionType::update << ActionType::find;
|
||||
Privilege::addPrivilegeToPrivilegeVector(
|
||||
privileges,
|
||||
Privilege(ResourcePattern::forExactNamespace(NamespaceString("config",
|
||||
"settings")),
|
||||
configSettingsActions));
|
||||
}
|
||||
|
||||
void addRestorePrivileges(PrivilegeVector* privileges) {
|
||||
|
Loading…
Reference in New Issue
Block a user