Merge pull request #4020 from betagouv/dev

2019-07-01-01
This commit is contained in:
Keirua 2019-07-01 12:14:34 +02:00 committed by GitHub
commit 9d0a2d3f2e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 4 deletions

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

View file

@ -110,7 +110,7 @@ Rails.application.configure do
}
# 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'
end