diff options
author | Andy Schwerin <schwerin@10gen.com> | 2012-12-11 17:26:58 -0500 |
---|---|---|
committer | Andy Schwerin <schwerin@10gen.com> | 2012-12-14 13:56:36 -0500 |
commit | 9da0609329171710ac085c66038c6399d4e4423b (patch) | |
tree | c30e896e8264e5c37692f662899711a677a936bf /src/mongo/db/auth/privilege.h | |
parent | 8ab8bafd2617674e6656ba063a3782c301a89e13 (diff) | |
download | mongo-9da0609329171710ac085c66038c6399d4e4423b.tar.gz |
Reimplement PrivilegeSet.
This new implementation embeds in PrivilegeSet the hierarchical privilege
checking algorithm. This is necessary in order to allow a connection with
multiple authenticated princiapls to correctly resolve whether or not a
command is authorized, given the case where one principal's authority provides
some of the required privileges, and another's provides the rest.
SERVER-7767
Diffstat (limited to 'src/mongo/db/auth/privilege.h')
-rw-r--r-- | src/mongo/db/auth/privilege.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/auth/privilege.h b/src/mongo/db/auth/privilege.h index b6326860805..eef476ea224 100644 --- a/src/mongo/db/auth/privilege.h +++ b/src/mongo/db/auth/privilege.h @@ -29,7 +29,8 @@ namespace mongo { class Privilege { public: - Privilege(const std::string& resource, ActionSet actions); + Privilege(const std::string& resource, const ActionType& action); + Privilege(const std::string& resource, const ActionSet& actions); ~Privilege() {} const std::string& getResource() const { return _resource; } |