mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-28 10:33:49 +00:00
add ACL for export
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user