Loading front/Mission/OffreEmploi.vue +1 −1 Original line number Diff line number Diff line Loading @@ -95,7 +95,7 @@ </p> <br/> <div v-if="this.canValiderCandidature"> <div v-if="this.canVoirCandidature"> <h5><strong>Liste des candidats :</strong></h5> <table class="table table-bordered "> Loading module/Mission/src/Assertion/OffreEmploiAssertion.php +10 −1 Original line number Diff line number Diff line Loading @@ -90,8 +90,9 @@ class OffreEmploiAssertion extends AbstractAssertion implements EntityManagerAwa case $entity instanceof Candidature: switch ($privilege) { case Privileges::MISSION_CANDIDATURE_VALIDER: case Privileges::MISSION_CANDIDATURE_REFUSER: return $this->assertCandidatureValider($role, $entity); case Privileges::MISSION_CANDIDATURE_REFUSER: return $this->assertCandidatureRefuser($role, $entity); } break; } Loading Loading @@ -288,4 +289,12 @@ class OffreEmploiAssertion extends AbstractAssertion implements EntityManagerAwa ]); } protected function assertCandidatureRefuser(Role $role, Candidature $candidature): bool { $structureOffre = $candidature->getOffre()->getStructure(); return $this->assertStructure($role, $structureOffre); } } No newline at end of file Loading
front/Mission/OffreEmploi.vue +1 −1 Original line number Diff line number Diff line Loading @@ -95,7 +95,7 @@ </p> <br/> <div v-if="this.canValiderCandidature"> <div v-if="this.canVoirCandidature"> <h5><strong>Liste des candidats :</strong></h5> <table class="table table-bordered "> Loading
module/Mission/src/Assertion/OffreEmploiAssertion.php +10 −1 Original line number Diff line number Diff line Loading @@ -90,8 +90,9 @@ class OffreEmploiAssertion extends AbstractAssertion implements EntityManagerAwa case $entity instanceof Candidature: switch ($privilege) { case Privileges::MISSION_CANDIDATURE_VALIDER: case Privileges::MISSION_CANDIDATURE_REFUSER: return $this->assertCandidatureValider($role, $entity); case Privileges::MISSION_CANDIDATURE_REFUSER: return $this->assertCandidatureRefuser($role, $entity); } break; } Loading Loading @@ -288,4 +289,12 @@ class OffreEmploiAssertion extends AbstractAssertion implements EntityManagerAwa ]); } protected function assertCandidatureRefuser(Role $role, Candidature $candidature): bool { $structureOffre = $candidature->getOffre()->getStructure(); return $this->assertStructure($role, $structureOffre); } } No newline at end of file