From f792d02e435901146c10885a61b47d9035de633d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Mon, 16 Jan 2017 15:20:08 +0100 Subject: [PATCH] fix error: add missing return statements --- Security/Authorization/ActivityStatsVoter.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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(); } }