diff --git a/Security/Authorization/ActivityStatsVoter.php b/Security/Authorization/ActivityStatsVoter.php index 94eedf1fb..f3285ba7e 100644 --- a/Security/Authorization/ActivityStatsVoter.php +++ b/Security/Authorization/ActivityStatsVoter.php @@ -32,6 +32,7 @@ use Chill\ActivityBundle\Security\Authorization\ActivityVoter; class ActivityStatsVoter extends AbstractChillVoter implements ProvideRoleInterface { const STATS = 'CHILL_ACTIVITY_STATS'; + const LISTS = 'CHILL_ACTIVITY_LIST'; /** * @@ -46,7 +47,7 @@ class ActivityStatsVoter extends AbstractChillVoter implements ProvideRoleInterf protected function getSupportedAttributes() { - return array(self::STATS, ActivityVoter::SEE); + return array(self::STATS, ActivityVoter::SEE, self::LISTS); } protected function getSupportedClasses() @@ -65,12 +66,12 @@ class ActivityStatsVoter extends AbstractChillVoter implements ProvideRoleInterf public function getRoles() { - $this->getSupportedAttributes(); + return $this->getSupportedAttributes(); } public function getRolesWithoutScope() { - $this->getSupportedAttributes(); + return $this->getSupportedAttributes(); } }