Loading module/Mission/src/Controller/OffreEmploiController.php +11 −0 Original line number Diff line number Diff line Loading @@ -5,6 +5,7 @@ namespace Mission\Controller; use Application\Controller\AbstractController; use Application\Provider\Privilege\Privileges; use Application\Service\Traits\ContextServiceAwareTrait; use BjyAuthorize\Exception\UnAuthorizedException; use Intervenant\Entity\Db\Intervenant; use Laminas\View\Model\ViewModel; use Mission\Entity\Db\Candidature; Loading Loading @@ -318,6 +319,11 @@ class OffreEmploiController extends AbstractController * @var Intervenant $intervenant * @var WorkflowEtape $etapeDonneesPersos */ $canAcces = $this->isAllowed(Privileges::getResourceId(Privileges::MISSION_CANDIDATURE_VISUALISATION)); if (!$canAcces) { throw new UnAuthorizedException(); } $intervenant = $this->getEvent()->getParam('intervenant'); $renseignerDonneesPersonnelles = false; $canValiderCandidature = $this->isAllowed($intervenant, Privileges::MISSION_CANDIDATURE_VALIDER); Loading @@ -340,6 +346,11 @@ class OffreEmploiController extends AbstractController public function getCandidaturesAction() { $canAcces = $this->isAllowed(Privileges::getResourceId(Privileges::MISSION_CANDIDATURE_VISUALISATION)); if (!$canAcces) { throw new UnAuthorizedException(); } $intervenant = $this->getEvent()->getParam('intervenant'); if (!$intervenant) { throw new \LogicException('Intervenant introuvable'); Loading Loading
module/Mission/src/Controller/OffreEmploiController.php +11 −0 Original line number Diff line number Diff line Loading @@ -5,6 +5,7 @@ namespace Mission\Controller; use Application\Controller\AbstractController; use Application\Provider\Privilege\Privileges; use Application\Service\Traits\ContextServiceAwareTrait; use BjyAuthorize\Exception\UnAuthorizedException; use Intervenant\Entity\Db\Intervenant; use Laminas\View\Model\ViewModel; use Mission\Entity\Db\Candidature; Loading Loading @@ -318,6 +319,11 @@ class OffreEmploiController extends AbstractController * @var Intervenant $intervenant * @var WorkflowEtape $etapeDonneesPersos */ $canAcces = $this->isAllowed(Privileges::getResourceId(Privileges::MISSION_CANDIDATURE_VISUALISATION)); if (!$canAcces) { throw new UnAuthorizedException(); } $intervenant = $this->getEvent()->getParam('intervenant'); $renseignerDonneesPersonnelles = false; $canValiderCandidature = $this->isAllowed($intervenant, Privileges::MISSION_CANDIDATURE_VALIDER); Loading @@ -340,6 +346,11 @@ class OffreEmploiController extends AbstractController public function getCandidaturesAction() { $canAcces = $this->isAllowed(Privileges::getResourceId(Privileges::MISSION_CANDIDATURE_VISUALISATION)); if (!$canAcces) { throw new UnAuthorizedException(); } $intervenant = $this->getEvent()->getParam('intervenant'); if (!$intervenant) { throw new \LogicException('Intervenant introuvable'); Loading