add specific role for LIST and STAT

This commit is contained in:
2017-04-20 16:27:06 +02:00
parent 1bc93af148
commit be2edec605
5 changed files with 14 additions and 4 deletions

View File

@@ -35,6 +35,7 @@ class PersonVoter extends AbstractChillVoter implements ProvideRoleHierarchyInte
const UPDATE = 'CHILL_PERSON_UPDATE';
const SEE = 'CHILL_PERSON_SEE';
const STATS = 'CHILL_PERSON_STATS';
const LISTS = 'CHILL_PERSON_LISTS';
/**
*
@@ -49,7 +50,7 @@ class PersonVoter extends AbstractChillVoter implements ProvideRoleHierarchyInte
protected function getSupportedAttributes()
{
return array(self::CREATE, self::UPDATE, self::SEE, self::STATS);
return array(self::CREATE, self::UPDATE, self::SEE, self::STATS, self::LISTS);
}
protected function getSupportedClasses()