public function assert(Acl $acl, RoleInterface $role = null, ResourceInterface $resource = null, $privilege = null) { if (!$resource instanceof User) { return false; } return $acl->isAdminRole($resource->getRole()); }