Loading module/Application/src/Application/Controller/IndexController.php +2 −1 Original line number Diff line number Diff line Loading @@ -238,7 +238,8 @@ EOS /** @var Role $role */ $role = $this->userContextService->getSelectedIdentityRole(); if ($role !== null && $structure = $role->getStructure()) { return $this->etablissementService->getRepository()->findByStructureId($structure->getId()); $etablissement = $this->etablissementService->getRepository()->findByStructureId($structure->getId()); if ($etablissement) return $etablissement; } return $this->etablissementService->getRepository()->findOneForUserWrapper($userWrapper); Loading Loading
module/Application/src/Application/Controller/IndexController.php +2 −1 Original line number Diff line number Diff line Loading @@ -238,7 +238,8 @@ EOS /** @var Role $role */ $role = $this->userContextService->getSelectedIdentityRole(); if ($role !== null && $structure = $role->getStructure()) { return $this->etablissementService->getRepository()->findByStructureId($structure->getId()); $etablissement = $this->etablissementService->getRepository()->findByStructureId($structure->getId()); if ($etablissement) return $etablissement; } return $this->etablissementService->getRepository()->findOneForUserWrapper($userWrapper); Loading