summaryrefslogtreecommitdiff
path: root/src/mongo/db/auth/role_graph.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/auth/role_graph.h')
-rw-r--r--src/mongo/db/auth/role_graph.h6
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);