This commit is contained in:
2023-08-28 12:49:31 +02:00
parent ea9c21e021
commit c33330969c
4 changed files with 4 additions and 4 deletions

View File

@@ -167,7 +167,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]);