From 72fd5d250f7a8af6820fe4906a82139797c6fd6d Mon Sep 17 00:00:00 2001 From: Nicolas Bouilleaud Date: Mon, 1 Jul 2019 18:14:02 +0200 Subject: [PATCH] Respect dossier.messagerie_available? in SupportController (/contact) --- app/controllers/support_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/support_controller.rb b/app/controllers/support_controller.rb index b907e20a5..47423cddd 100644 --- a/app/controllers/support_controller.rb +++ b/app/controllers/support_controller.rb @@ -82,7 +82,7 @@ class SupportController < ApplicationController end def direct_message? - user_signed_in? && params[:type] == Helpscout::FormAdapter::TYPE_INSTRUCTION && dossier.present? && !dossier.brouillon? + user_signed_in? && params[:type] == Helpscout::FormAdapter::TYPE_INSTRUCTION && dossier.present? && dossier.messagerie_available? end def dossier