modify model

This commit is contained in:
Kara Diaby 2022-03-22 15:00:17 +01:00
parent 1b80bfcd5d
commit 217793c5c8

View file

@ -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?