diff options
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 |