From bd666a53afc9db4e2ffc7d1a0dcce5fef31a2bf8 Mon Sep 17 00:00:00 2001 From: Nicolas Bouilleaud Date: Mon, 1 Jul 2019 11:59:29 +0200 Subject: [PATCH 1/2] Reallow automatic Commentaires for archived/closed Dossier --- app/services/commentaire_service.rb | 3 --- 1 file changed, 3 deletions(-) diff --git a/app/services/commentaire_service.rb b/app/services/commentaire_service.rb index b7e8ef206..fa3b9a576 100644 --- a/app/services/commentaire_service.rb +++ b/app/services/commentaire_service.rb @@ -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 From 0cfd3e3c1f67a4d8660e769a51b95a500f9d5097 Mon Sep 17 00:00:00 2001 From: clemkeirua Date: Mon, 1 Jul 2019 12:07:24 +0200 Subject: [PATCH 2/2] disable csp --- config/environments/production.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/environments/production.rb b/config/environments/production.rb index 0c93feb51..3027c6cf6 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -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