export: cast role as string in PickCenterType

This commit is contained in:
nobohan 2022-07-04 16:19:03 +02:00
parent c76f2a81c9
commit 31e1bfdf80

View File

@ -80,7 +80,7 @@ class PickCenterType extends AbstractType
$export = $this->exportManager->getExport($options['export_alias']); $export = $this->exportManager->getExport($options['export_alias']);
$centers = $this->authorizationHelper->getReachableCenters( $centers = $this->authorizationHelper->getReachableCenters(
$this->user, $this->user,
$export->requiredRole()->__toString() (string) $export->requiredRole()
); );
$builder->add(self::CENTERS_IDENTIFIERS, EntityType::class, [ $builder->add(self::CENTERS_IDENTIFIERS, EntityType::class, [