[Fix #2145] When procedure is archived, usager should see a message explaining dossier submission is closed

This commit is contained in:
Mathieu Magnin 2018-06-25 18:07:16 +02:00
parent 9afbd16bbf
commit e694e7f9b9
7 changed files with 123 additions and 33 deletions

View file

@ -14,4 +14,8 @@ module DossierHelper
"highlighted"
end
end
def dossier_submission_is_closed?(dossier)
dossier.brouillon? && dossier.procedure.archivee?
end
end