Commit 2fb86898 authored by Antony Le Courtes's avatar Antony Le Courtes
Browse files

bloquer la suppression d'une offre d'emploi validée

parent a742cdd0
Loading
Loading
Loading
Loading
+1
Changes for module/Mission/src/Assertion/OffreEmploiAssertion.php: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -215,6 +215,7 @@ class OffreEmploiAssertion extends AbstractAssertion implements EntityManagerAwa
    protected function assertOffreEmploiSupprimer (Role $role, OffreEmploi $offre)
    {
        return $this->asserts([
            !$offre->isValide(),
            $this->haveRole(),
            $this->assertOffreEmploi($role, $offre),
        ]);