fix(fermeture): redirect to commencer if procedure not closed

This commit is contained in:
Eric Leroy-Terquem 2024-03-27 12:16:04 +01:00
parent 65b8f6881a
commit 78530f9823
No known key found for this signature in database
GPG key ID: ECE60B4C1FA2ABB3

View file

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