Merge pull request #10232 from demarches-simplifiees/redirect-fermeture-to-commencer-if-procedure-not-closed

Correctif: redirige la page fermeture vers la page commencer si la démarche n'est pas fermée
This commit is contained in:
Colin Darie 2024-04-04 07:34:23 +00:00 committed by GitHub
commit 0c4a4c8764
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -83,6 +83,8 @@ module Users
return procedure_not_found if @procedure.blank? return procedure_not_found if @procedure.blank?
redirect_to commencer_path(params[:path]) and return if !@procedure.close?
render 'closing_details', layout: 'closing_details' render 'closing_details', layout: 'closing_details'
end end