Respect dossier.messagerie_available? in SupportController (/contact)

This commit is contained in:
Nicolas Bouilleaud 2019-07-01 18:14:02 +02:00 committed by Pierre de La Morinerie
parent 12008728d2
commit 72fd5d250f

View file

@ -82,7 +82,7 @@ class SupportController < ApplicationController
end end
def direct_message? 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 end
def dossier def dossier