Reallow automatic Commentaires for archived/closed Dossier

This commit is contained in:
Nicolas Bouilleaud 2019-07-01 11:59:29 +02:00
parent a238be2f2c
commit bd666a53af

View file

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