diff options
author | Spencer Jackson <spencer.jackson@mongodb.com> | 2018-04-20 20:52:47 -0400 |
---|---|---|
committer | Spencer Jackson <spencer.jackson@mongodb.com> | 2018-05-16 15:19:11 -0400 |
commit | 0a4f7b1ebf173984883d6e018ae88350015dfeb3 (patch) | |
tree | 9e0b513ba32a16ef42778a2f26cf74635ad37277 /src/mongo/db/auth/user.h | |
parent | 373aae274364751eec424a3665c50b53b06f6746 (diff) | |
download | mongo-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.h | 5 |
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. |