Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

SERVER-12541 Give restore role the ability to query admin.system.version

  • Loading branch information...
commit ce5ec7ad32c56a4b92e0745643911b4a1974e61e 1 parent 128b91e
@stbrody stbrody authored stbrody committed
Showing with 2 additions and 1 deletion.
  1. +2 −1  src/mongo/db/auth/role_graph_builtin_roles.cpp
View
3  src/mongo/db/auth/role_graph_builtin_roles.cpp
@@ -552,6 +552,7 @@ namespace {
AuthorizationManager::rolesCollectionNamespace),
actions));
+ actions << ActionType::find;
Privilege::addPrivilegeToPrivilegeVector(
privileges,
Privilege(
@@ -560,7 +561,7 @@ namespace {
actions));
// Need additional actions on system.users.
- actions << ActionType::find << ActionType::update << ActionType::remove;
+ actions << ActionType::update << ActionType::remove;
Privilege::addPrivilegeToPrivilegeVector(
privileges,
Privilege(ResourcePattern::forCollectionName("system.users"), actions));
Please sign in to comment.
Something went wrong with that request. Please try again.