fix(fermeture): redirect to commencer if procedure not closed
This commit is contained in:
parent
65b8f6881a
commit
78530f9823
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue