fix error: add missing return statements

This commit is contained in:
Julien Fastré 2017-01-16 15:20:08 +01:00
parent 9ad651a5d8
commit f792d02e43

View File

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