commit
9d0a2d3f2e
2 changed files with 1 additions and 4 deletions
|
@ -12,9 +12,6 @@ class CommentaireService
|
||||||
end
|
end
|
||||||
|
|
||||||
def build_with_email(email, dossier, params)
|
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)
|
attributes = params.merge(email: email, dossier: dossier)
|
||||||
Commentaire.new(attributes)
|
Commentaire.new(attributes)
|
||||||
end
|
end
|
||||||
|
|
|
@ -110,7 +110,7 @@ Rails.application.configure do
|
||||||
}
|
}
|
||||||
|
|
||||||
# The Content-Security-Policy is NOT in Report-Only mode
|
# The Content-Security-Policy is NOT in Report-Only mode
|
||||||
config.content_security_policy_report_only = false
|
config.content_security_policy_report_only = true
|
||||||
|
|
||||||
config.lograge.enabled = ENV['LOGRAGE_ENABLED'] == 'enabled'
|
config.lograge.enabled = ENV['LOGRAGE_ENABLED'] == 'enabled'
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue