commit
9d0a2d3f2e
2 changed files with 1 additions and 4 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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue