diff options
author | Jonathan Reams <jbreams@mongodb.com> | 2018-06-29 12:35:20 -0400 |
---|---|---|
committer | Jonathan Reams <jbreams@mongodb.com> | 2018-08-01 12:56:36 -0400 |
commit | 2c504892ae516f56dc127dee1146baf894a5fc59 (patch) | |
tree | 5bf4235aa14d748e29d2abac6535a5618ad200fd /src/mongo/db/auth/role_graph_builtin_roles.cpp | |
parent | f263446414cfdcc0e0caf24e7f61a058faf382ef (diff) | |
download | mongo-2c504892ae516f56dc127dee1146baf894a5fc59.tar.gz |
SERVER-35890 refactor User cache into InvalidatingLRUCache and UserHandle
Diffstat (limited to 'src/mongo/db/auth/role_graph_builtin_roles.cpp')
-rw-r--r-- | src/mongo/db/auth/role_graph_builtin_roles.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/db/auth/role_graph_builtin_roles.cpp b/src/mongo/db/auth/role_graph_builtin_roles.cpp index a243ba3baf6..90c6a6e97f2 100644 --- a/src/mongo/db/auth/role_graph_builtin_roles.cpp +++ b/src/mongo/db/auth/role_graph_builtin_roles.cpp @@ -362,7 +362,9 @@ void addUserAdminAnyDbPrivileges(PrivilegeVector* privileges) { Privilege(ResourcePattern::forClusterResource(), ActionType::invalidateUserCache)); Privilege::addPrivilegeToPrivilegeVector( privileges, Privilege(ResourcePattern::forClusterResource(), ActionType::viewUser)); - + Privilege::addPrivilegeToPrivilegeVector( + privileges, + Privilege(ResourcePattern::forAnyNormalResource(), ActionType::listCachedAndActiveUsers)); ActionSet readRoleAndIndexActions; readRoleAndIndexActions += readRoleActions; |