diff options
author | Spencer T Brody <spencer@10gen.com> | 2013-09-09 13:15:03 -0400 |
---|---|---|
committer | Spencer T Brody <spencer@10gen.com> | 2013-09-09 15:18:06 -0400 |
commit | b6a47bf423307eff6aaa1c0c7e44b15a65c21a82 (patch) | |
tree | 35ead2cd8a51187ff1e3b28050089a6ca97472a8 /src/mongo/db/auth/role_graph.h | |
parent | a6f74a5a6e0691488ac372ee594ed18960488040 (diff) | |
download | mongo-b6a47bf423307eff6aaa1c0c7e44b15a65c21a82.tar.gz |
SERVER-9518 Move V0 system role constants into RoleGraph
Diffstat (limited to 'src/mongo/db/auth/role_graph.h')
-rw-r--r-- | src/mongo/db/auth/role_graph.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/db/auth/role_graph.h b/src/mongo/db/auth/role_graph.h index bdc1f12d4d4..1a986c28d30 100644 --- a/src/mongo/db/auth/role_graph.h +++ b/src/mongo/db/auth/role_graph.h @@ -56,6 +56,12 @@ namespace mongo { RoleGraph(const RoleGraph& other); ~RoleGraph(); + // System roles for backwards compatibility with 2.2 and prior + static const std::string SYSTEM_ROLE_V0_READ; + static const std::string SYSTEM_ROLE_V0_READ_WRITE; + static const std::string SYSTEM_ROLE_V0_ADMIN_READ; + static const std::string SYSTEM_ROLE_V0_ADMIN_READ_WRITE; + // Swaps the contents of this RoleGraph with those of "other" void swap(RoleGraph& other); |