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