diff options
author | Gabriel Russell <gabriel.russell@mongodb.com> | 2017-07-17 17:02:56 -0400 |
---|---|---|
committer | Gabriel Russell <gabriel.russell@mongodb.com> | 2017-07-17 17:02:56 -0400 |
commit | b8683e45c218b4233831931aa33afaaa9f84f0c1 (patch) | |
tree | 731b0c3948f5adaaffdec8a78e94b01c56b38388 /src/mongo/db/auth | |
parent | c23a43323ed194013b0d16b6cbbd08d88e6a7c08 (diff) | |
download | mongo-b8683e45c218b4233831931aa33afaaa9f84f0c1.tar.gz |
Revert "SERVER-28334 startSession command"
This reverts commit ba8f82ff901ce971fadae87b4e45a3432248d434.
Diffstat (limited to 'src/mongo/db/auth')
-rw-r--r-- | src/mongo/db/auth/action_types.txt | 1 | ||||
-rw-r--r-- | src/mongo/db/auth/role_graph_builtin_roles.cpp | 8 |
2 files changed, 0 insertions, 9 deletions
diff --git a/src/mongo/db/auth/action_types.txt b/src/mongo/db/auth/action_types.txt index dd9e6a9c8cc..3800e3c5382 100644 --- a/src/mongo/db/auth/action_types.txt +++ b/src/mongo/db/auth/action_types.txt @@ -101,7 +101,6 @@ "shutdown", "splitChunk", "splitVector", -"startSession", "storageDetails", "top", "touch", diff --git a/src/mongo/db/auth/role_graph_builtin_roles.cpp b/src/mongo/db/auth/role_graph_builtin_roles.cpp index a9ee381c277..6273f4505f5 100644 --- a/src/mongo/db/auth/role_graph_builtin_roles.cpp +++ b/src/mongo/db/auth/role_graph_builtin_roles.cpp @@ -648,11 +648,6 @@ void addInternalRolePrivileges(PrivilegeVector* privileges) { RoleGraph::generateUniversalPrivileges(privileges); } -void addAnyBuiltinRolePrivileges(PrivilegeVector* privileges) { - Privilege::addPrivilegeToPrivilegeVector( - privileges, Privilege(ResourcePattern::forClusterResource(), ActionType::startSession)); -} - } // namespace bool RoleGraph::addPrivilegesForBuiltinRole(const RoleName& roleName, PrivilegeVector* result) { @@ -697,9 +692,6 @@ bool RoleGraph::addPrivilegesForBuiltinRole(const RoleName& roleName, PrivilegeV } else { return false; } - - // One of the roles has matched, otherwise we would have returned already. - addAnyBuiltinRolePrivileges(result); return true; } |