fix(dossier): user can create new dossiers when closed procedure is replaced
This commit is contained in:
parent
a8ae706efd
commit
52d63a1b02
3 changed files with 10 additions and 1 deletions
|
@ -453,6 +453,10 @@ class Procedure < ApplicationRecord
|
|||
publiee? || brouillon?
|
||||
end
|
||||
|
||||
def replaced_by_procedure?
|
||||
replaced_by_procedure_id.present?
|
||||
end
|
||||
|
||||
def dossier_can_transition_to_en_construction?
|
||||
accepts_new_dossiers? || depubliee?
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue