diff options
author | Amalia Hawkins <amalia.hawkins@10gen.com> | 2014-07-21 15:58:33 -0400 |
---|---|---|
committer | Amalia Hawkins <amalia.hawkins@10gen.com> | 2014-09-16 11:40:17 -0400 |
commit | 90202295ec60271830464d0f9829a41dfc2a45b1 (patch) | |
tree | 40faeb771fb1541b878be717fe2943af5e70ec47 /src/mongo/db/auth/privilege.h | |
parent | c7b0fc8e6a9147f8c66ec212afe314e8b68f5341 (diff) | |
download | mongo-90202295ec60271830464d0f9829a41dfc2a45b1.tar.gz |
SERVER-13698: Add role and privilege info to connectionStatus output.
Diffstat (limited to 'src/mongo/db/auth/privilege.h')
-rw-r--r-- | src/mongo/db/auth/privilege.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mongo/db/auth/privilege.h b/src/mongo/db/auth/privilege.h index 73fe8e39223..1009172a30c 100644 --- a/src/mongo/db/auth/privilege.h +++ b/src/mongo/db/auth/privilege.h @@ -71,6 +71,8 @@ namespace mongo { // Checks if the given actions are present in the Privilege. bool includesActions(const ActionSet& actions) const; + BSONObj toBSON() const; + private: ResourcePattern _resource; |