Commit 75da7ce0 authored by Florian Joriot's avatar Florian Joriot
Browse files

Quand on a pas de mission on peut pas postuler a des offres

parent c30e7f6f
Loading
Loading
Loading
Loading
+4
Changes for module/Intervenant/src/Service/StatutService.php: 4 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -163,6 +163,10 @@ class StatutService extends AbstractEntityService
        if (!$entity->getAnnee()) {
            $entity->setAnnee($this->getServiceContext()->getAnnee());
        }
        // Sans mission, pas de candidature possible aux offres d'emploi
        if (!$entity->getMission()) {
            $entity->setOffreEmploiPostuler(false);
        }
        $this->getSessionContainer()->offsetUnset('privileges' . $entity->getAnnee()->getId());

        return parent::save($entity); // TODO: Change the autogenerated stub