diff options
author | Spencer T Brody <spencer@10gen.com> | 2013-10-03 17:26:47 -0400 |
---|---|---|
committer | Spencer T Brody <spencer@10gen.com> | 2013-10-04 17:17:49 -0400 |
commit | e0f70cdb67a36c831a23b452e7b9fba41f512ae0 (patch) | |
tree | 7ab468d55bdea340604d20cf9241bc0fc9bf062e /src/mongo/db/auth/user.h | |
parent | 46bfd183986454ef9ccf5f333cb38be4ce4b1255 (diff) | |
download | mongo-e0f70cdb67a36c831a23b452e7b9fba41f512ae0.tar.gz |
SERVER-6246 SERVER-9515 Clean up parsing of some existing user and role management commands.
Diffstat (limited to 'src/mongo/db/auth/user.h')
-rw-r--r-- | src/mongo/db/auth/user.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mongo/db/auth/user.h b/src/mongo/db/auth/user.h index 2d6e895b500..24f588cd335 100644 --- a/src/mongo/db/auth/user.h +++ b/src/mongo/db/auth/user.h @@ -55,6 +55,8 @@ namespace mongo { bool hasRole; bool canDelegate; RoleData() : hasRole(false), canDelegate(false) {} + RoleData(const RoleName& _name, bool _hasRole, bool _canDelegate) : + name(_name), hasRole(_hasRole), canDelegate(_canDelegate) {} }; typedef unordered_map<RoleName, RoleData> RoleDataMap; |