dossier: make messagerie available on archived procedures

An Admin may archive a procedure to make it unavailable to
the general public, but before all dossiers are handled. In this case,
the messagerie needs to be available.

Fix #4089
This commit is contained in:
Pierre de La Morinerie 2019-07-11 15:37:04 +02:00
parent d3a7bc271e
commit 35c3795f56
2 changed files with 7 additions and 13 deletions

View file

@ -225,7 +225,7 @@ class Dossier < ApplicationRecord
end
def messagerie_available?
!brouillon? && !archived && !procedure.archivee?
!brouillon? && !archived
end
def retention_end_date