summaryrefslogtreecommitdiff
path: root/src/mongo/db/auth/user.h
diff options
context:
space:
mode:
authorSpencer Jackson <spencer.jackson@mongodb.com>2018-04-20 20:52:47 -0400
committerSpencer Jackson <spencer.jackson@mongodb.com>2018-05-16 15:19:11 -0400
commit0a4f7b1ebf173984883d6e018ae88350015dfeb3 (patch)
tree9e0b513ba32a16ef42778a2f26cf74635ad37277 /src/mongo/db/auth/user.h
parent373aae274364751eec424a3665c50b53b06f6746 (diff)
downloadmongo-0a4f7b1ebf173984883d6e018ae88350015dfeb3.tar.gz
SERVER-32942: Let users listcollections their own collections
Diffstat (limited to 'src/mongo/db/auth/user.h')
-rw-r--r--src/mongo/db/auth/user.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/db/auth/user.h b/src/mongo/db/auth/user.h
index 5fb67ccd08c..b974a0a3a7c 100644
--- a/src/mongo/db/auth/user.h
+++ b/src/mongo/db/auth/user.h
@@ -151,6 +151,11 @@ public:
const ActionSet getActionsForResource(const ResourcePattern& resource) const;
/**
+ * Returns true if the user has is allowed to perform an action on the given resource.
+ */
+ bool hasActionsForResource(const ResourcePattern& resource) const;
+
+ /**
* Returns true if this copy of information about this user is still valid. If this returns
* false, this object should no longer be used and should be returned to the
* AuthorizationManager and a new User object for this user should be requested.