diff options
author | Sara Golemon <sara.golemon@mongodb.com> | 2020-08-07 17:20:40 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-08-20 17:20:11 +0000 |
commit | 526230bafa6e5a49f5783507734fba93486c19ae (patch) | |
tree | 0368297ed96c038934c356259c901e3c931643dc /src/mongo/db/auth/authorization_manager_impl.cpp | |
parent | fbde2a22dab3eaf64c5aec542811be954faaf7e1 (diff) | |
download | mongo-526230bafa6e5a49f5783507734fba93486c19ae.tar.gz |
SERVER-50187 Use AuthzManagerExternalState::roleExists() to simplify role checks
Diffstat (limited to 'src/mongo/db/auth/authorization_manager_impl.cpp')
-rw-r--r-- | src/mongo/db/auth/authorization_manager_impl.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/db/auth/authorization_manager_impl.cpp b/src/mongo/db/auth/authorization_manager_impl.cpp index a2ba1112eec..42439d4e791 100644 --- a/src/mongo/db/auth/authorization_manager_impl.cpp +++ b/src/mongo/db/auth/authorization_manager_impl.cpp @@ -416,6 +416,11 @@ Status AuthorizationManagerImpl::getUserDescription(OperationContext* opCtx, return _externalState->getUserDescription(opCtx, UserRequest(userName, boost::none), result); } +Status AuthorizationManagerImpl::rolesExist(OperationContext* opCtx, + const std::vector<RoleName>& roleNames) { + return _externalState->rolesExist(opCtx, roleNames); +} + Status AuthorizationManagerImpl::getRoleDescription(OperationContext* opCtx, const RoleName& roleName, PrivilegeFormat privileges, |