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