Fix new CS

This commit is contained in:
2023-09-06 16:18:28 +02:00
committed by Julie Lenaerts
parent e7a9b10d0d
commit 6f1dd5b3f2
5 changed files with 25 additions and 13 deletions

View File

@@ -214,7 +214,7 @@ final class PersonController extends AbstractController
{
$person = new Person();
$authorizedCenters =$this->authorizationHelper->getReachableCenters($this->getUser(), PersonVoter::CREATE);
$authorizedCenters = $this->authorizationHelper->getReachableCenters($this->getUser(), PersonVoter::CREATE);
if (1 === count($authorizedCenters)) {
$person->setCenter($authorizedCenters[0]);