mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
fix error: add missing return statements
This commit is contained in:
parent
9ad651a5d8
commit
f792d02e43
@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user