Esempio n. 1
0
const ActionSet User::getActionsForResource(const ResourcePattern& resource) const {
    stdx::unordered_map<ResourcePattern, Privilege>::const_iterator it = _privileges.find(resource);
    if (it == _privileges.end()) {
        return ActionSet();
    }
    return it->second.getActions();
}
Esempio n. 2
0
 const ActionSet User::getActionsForResource(const std::string& resource) const {
     unordered_map<string, Privilege>::const_iterator it = _privileges.find(resource);
     if (it == _privileges.end()) {
         return ActionSet();
     }
     return it->second.getActions();
 }
Esempio n. 3
0
ActionSet NpcNormal::startAction(){
	return ActionSet();
}