Do not send messages to brouillon dossier

This commit is contained in:
Paul Chavard 2018-08-30 13:43:03 +01:00
parent 854bc62caa
commit 0c582197da

View file

@ -64,7 +64,7 @@ class SupportController < ApplicationController
end
def direct_message?
user_signed_in? && params[:type] == Helpscout::FormAdapter::TYPE_INSTRUCTION && dossier.present?
user_signed_in? && params[:type] == Helpscout::FormAdapter::TYPE_INSTRUCTION && dossier.present? && !dossier.brouillon?
end
def dossier