From 4b0499cf8d593a8145775f6ccd5607f778a5caaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Fri, 6 Apr 2018 02:43:11 +0200 Subject: [PATCH] fix invocation of old method --- Security/Authorization/PersonVoter.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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()