summaryrefslogtreecommitdiff
path: root/src/mongo/db/auth/privilege.h
diff options
context:
space:
mode:
authorAmalia Hawkins <amalia.hawkins@10gen.com>2014-07-21 15:58:33 -0400
committerAmalia Hawkins <amalia.hawkins@10gen.com>2014-09-16 11:40:17 -0400
commit90202295ec60271830464d0f9829a41dfc2a45b1 (patch)
tree40faeb771fb1541b878be717fe2943af5e70ec47 /src/mongo/db/auth/privilege.h
parentc7b0fc8e6a9147f8c66ec212afe314e8b68f5341 (diff)
downloadmongo-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.h2
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;