view->getRole(); if (!$acl->has($resource)) { return true; } return $acl->isAllowed($role, $resource, $right); } }