Fix new CS

This commit is contained in:
2023-09-06 16:18:28 +02:00
parent bc5c420f92
commit 34ee2b3ba5
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]);