diff options
author | Spencer T Brody <spencer@10gen.com> | 2012-11-01 15:35:11 -0400 |
---|---|---|
committer | Spencer T Brody <spencer@10gen.com> | 2012-11-05 17:36:27 -0500 |
commit | f2104328d07610e8512e933d52a7af716e03b5dc (patch) | |
tree | 8e8e881ab4ccc3b25145af32a910c573ec41ad63 /src/mongo/db/auth/action_set.h | |
parent | df0c97f16fa234014565b5ce0c2f6a4388d18d9f (diff) | |
download | mongo-f2104328d07610e8512e933d52a7af716e03b5dc.tar.gz |
Ennumerate all actions in ActionType, and use ActionSet for roles. SERVER-7126
Diffstat (limited to 'src/mongo/db/auth/action_set.h')
-rw-r--r-- | src/mongo/db/auth/action_set.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mongo/db/auth/action_set.h b/src/mongo/db/auth/action_set.h index f73a8161e68..ba43583d75e 100644 --- a/src/mongo/db/auth/action_set.h +++ b/src/mongo/db/auth/action_set.h @@ -33,6 +33,8 @@ namespace mongo { ActionSet() : _actions(0) {} void addAction(const ActionType& action); + void addAllActionsFromSet(const ActionSet& actionSet); + void addAllActions(); bool contains(const ActionType& action) const; @@ -49,7 +51,8 @@ namespace mongo { private: - std::bitset<128> _actions; // bitmask of actions this capability grants + // bitmask of actions this capability grants + std::bitset<ActionType::NUM_ACTION_TYPES> _actions; }; } // namespace mongo |