add ACL for export

This commit is contained in:
2016-01-24 22:25:55 +01:00
parent c74754af09
commit 9cb37a6115
3 changed files with 14 additions and 2 deletions

View File

@@ -49,12 +49,12 @@ class PersonVoter extends AbstractChillVoter implements ProvideRoleInterface
protected function getSupportedAttributes()
{
return array(self::CREATE, self::UPDATE, self::SEE);
return array(self::CREATE, self::UPDATE, self::SEE, self::STATS);
}
protected function getSupportedClasses()
{
return array('Chill\PersonBundle\Entity\Person');
return array('Chill\PersonBundle\Entity\Person', 'Chill\MainBundle\Entity\Center');
}
protected function isGranted($attribute, $person, $user = null)