From 217793c5c89aef90699f6fad8faa68c4d2ad02b7 Mon Sep 17 00:00:00 2001 From: Kara Diaby Date: Tue, 22 Mar 2022 15:00:17 +0100 Subject: [PATCH] modify 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 095b47c07..2602fee6d 100644 --- a/app/models/dossier.rb +++ b/app/models/dossier.rb @@ -504,7 +504,7 @@ class Dossier < ApplicationRecord end def read_only? - en_instruction? || accepte? || refuse? || sans_suite? + en_instruction? || accepte? || refuse? || sans_suite? || procedure.discarded? || procedure.close? && brouillon? end def can_transition_to_en_construction?