Esempio n. 1
0
 protected function isAllowedForUser($aclResource, $action, $namespace = '')
 {
     if (!$this->service->acl()->hasResource($namespace . $aclResource)) {
         return false;
     }
     return $this->user->can($namespace . $aclResource, $action);
 }