Commit e942d586 authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

Titre pour la modale d'envoi d'email

parent 5480f904
Loading
Loading
Loading
Loading
+4 −1
Changes for module/Contrat/src/Controller/ContratController.php: 4 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -472,6 +472,9 @@ class ContratController extends AbstractController
        /** @var Contrat $contrat */
        $contrat = $this->getEvent()->getParam('contrat');


        $title = 'Envoi du contrat à l\'intervenant';

        if (!$this->isAllowed($contrat, ContratAssertion::PRIV_EXPORT)) {
            throw new UnAuthorizedException("Interdiction d'envoyer le contrat par email");
        }
@@ -526,7 +529,7 @@ class ContratController extends AbstractController
            return $this->getResponse();
        }

        return compact('form');
        return compact('form', 'title');
    }