add demarches.gouv.fr as sender of automatic emails

This commit is contained in:
simon lehericey 2024-03-19 22:19:32 +01:00
parent edc4e60b81
commit 72a2b764dc

View file

@ -48,7 +48,7 @@ class Commentaire < ApplicationRecord
end
def sent_by_system?
[CONTACT_EMAIL, OLD_CONTACT_EMAIL].include?(email)
["demarches.gouv.fr", CONTACT_EMAIL, OLD_CONTACT_EMAIL].include?(email)
end
def sent_by_instructeur?