Reallow automatic Commentaires for archived/closed Dossier
This commit is contained in:
parent
a238be2f2c
commit
bd666a53af
1 changed files with 0 additions and 3 deletions
|
@ -12,9 +12,6 @@ class CommentaireService
|
|||
end
|
||||
|
||||
def build_with_email(email, dossier, params)
|
||||
if !dossier.messagerie_available?
|
||||
raise ArgumentError, "Commentaires cannot be added to brouillons or archived Dossiers"
|
||||
end
|
||||
attributes = params.merge(email: email, dossier: dossier)
|
||||
Commentaire.new(attributes)
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue