Commit c50a6fad authored by Johnny Leveneur's avatar Johnny Leveneur
Browse files

Le participant ne peux modifier son inscription si son pointage à commence

parent c7252069
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -164,6 +164,11 @@ class InscriptionController extends AbstractActionController
                if ($inscription->getEvenement() !== null
                    and $inscription->getParticipant() !== null and $inscription->getParticipant()->getId() != -1) {
                    if ($this->getEvenementService()->estModifiableInscription($inscription)) {
                        if($inscription->getNombrePlacesPointees() >= 0)
                        {
                            $this->flashMessenger()->addErrorMessage("Impossible de modifier cette inscription : le pointage a commencé.");
                            exit();
                        }
                        $this->getInscriptionService()->update($inscription);
                        switch ($inscription->getListe()) {
                            case Inscription::PRINCIPALE :