Merge pull request #4018 from betagouv/fix-closed-dossiers-commentaires
Reallow automatic Commentaires for archived/closed Dossier
This commit is contained in:
commit
4ae19898d2
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…
Reference in a new issue