Loading module/Application/src/Application/Controller/IndexController.php +6 −0 Changes for module/Application/src/Application/Controller/IndexController.php: 6 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -3,6 +3,7 @@ namespace Application\Controller; use Application\Entity\Db\Variable; use Application\Exception\DomainException; use Application\Service\Actualite\ActualiteServiceAwareTrait; use Application\Service\EcoleDoctorale\EcoleDoctoraleServiceAwareTrait; use Application\Service\Etablissement\EtablissementServiceAwareTrait; Loading Loading @@ -193,7 +194,12 @@ EOS return $this->redirect()->toRoute('home'); } $individu = $this->userContextService->getIdentityDoctorant(); if ($individu !== null) { $etablissement = $individu->getEtablissement(); } else { $etablissement = $this->etablissementService->getRepository()->findOneForUserWrapper($userWrapper); } if ($etablissement === null) { throw new RuntimeException( "Anomalie: établissement introuvable pour l'utilisateur '{$userWrapper->getUsername()}'."); Loading Loading
module/Application/src/Application/Controller/IndexController.php +6 −0 Changes for module/Application/src/Application/Controller/IndexController.php: 6 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -3,6 +3,7 @@ namespace Application\Controller; use Application\Entity\Db\Variable; use Application\Exception\DomainException; use Application\Service\Actualite\ActualiteServiceAwareTrait; use Application\Service\EcoleDoctorale\EcoleDoctoraleServiceAwareTrait; use Application\Service\Etablissement\EtablissementServiceAwareTrait; Loading Loading @@ -193,7 +194,12 @@ EOS return $this->redirect()->toRoute('home'); } $individu = $this->userContextService->getIdentityDoctorant(); if ($individu !== null) { $etablissement = $individu->getEtablissement(); } else { $etablissement = $this->etablissementService->getRepository()->findOneForUserWrapper($userWrapper); } if ($etablissement === null) { throw new RuntimeException( "Anomalie: établissement introuvable pour l'utilisateur '{$userWrapper->getUsername()}'."); Loading