From eda5f75ec3107588798d87af66764386e1dd0b14 Mon Sep 17 00:00:00 2001 From: Kara Diaby Date: Thu, 17 Mar 2022 11:21:35 +0100 Subject: [PATCH] modify dossier model --- app/models/dossier.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/dossier.rb b/app/models/dossier.rb index a93ea6a6a..095b47c07 100644 --- a/app/models/dossier.rb +++ b/app/models/dossier.rb @@ -528,7 +528,7 @@ class Dossier < ApplicationRecord end def messagerie_available? - !brouillon? && !user_deleted? && !archived + visible_by_administration? && !hidden_by_user? && !user_deleted? && !archived end def expirable?