diff --git a/Security/Authorization/PersonVoter.php b/Security/Authorization/PersonVoter.php index 339301c30..9b4899c65 100644 --- a/Security/Authorization/PersonVoter.php +++ b/Security/Authorization/PersonVoter.php @@ -74,15 +74,20 @@ class PersonVoter extends AbstractChillVoter implements ProvideRoleHierarchyInte return $this->helper->userHasAccess($token->getUser(), $subject, $attribute); } + + private function getAttributes() + { + return array(self::CREATE, self::UPDATE, self::SEE, self::STATS, self::LISTS); + } public function getRoles() { - return $this->getSupportedAttributes(); + return $this->getAttributes(); } public function getRolesWithoutScope() { - return $this->getSupportedAttributes(); + return $this->getAttributes(); } public function getRolesWithHierarchy()