diff options
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 3795e3f4c6d..0e164797d33 100644 --- a/src/mongo/db/auth/user.h +++ b/src/mongo/db/auth/user.h @@ -63,6 +63,11 @@ namespace mongo { const RoleNameIterator getRoles() const; /** + * Returns the CredentialData for this user. + */ + const CredentialData& getCredentials() const; + + /** * Gets the set of actions this user is allowed to perform on the given resource. */ const ActionSet getActionsForResource(const std::string& resource) const; |