Exemplo n.º 1
0
 bool AuthorizationSession::checkAuthorization(const std::string& resource,
                                               ActionSet actions) {
     return checkAuthForPrivilege(Privilege(resource, actions)).isOK();
 }
Exemplo n.º 2
0
 bool AuthorizationManager::checkAuthorization(const std::string& resource,
                                               ActionType action) {
     return checkAuthForPrivilege(Privilege(resource, action)).isOK();
 }