mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-28 10:33:49 +00:00
add acl for exports
This commit is contained in:
@@ -49,6 +49,8 @@ class PickCenterType extends AbstractType
|
||||
*/
|
||||
protected $exportManager;
|
||||
|
||||
const CENTERS_IDENTIFIERS = 'c';
|
||||
|
||||
/**
|
||||
*
|
||||
* @var AuthorizationHelper
|
||||
@@ -76,7 +78,7 @@ class PickCenterType extends AbstractType
|
||||
$centers = $this->authorizationHelper->getReachableCenters($this->user,
|
||||
$export->requiredRole());
|
||||
|
||||
$builder->add('c', EntityType::class, array(
|
||||
$builder->add(self::CENTERS_IDENTIFIERS, EntityType::class, array(
|
||||
'class' => 'ChillMainBundle:Center',
|
||||
'query_builder' => function(EntityRepository $er) use ($centers) {
|
||||
$qb = $er->createQueryBuilder('c');
|
||||
|
Reference in New Issue
Block a user