Do not send messages to brouillon dossier
This commit is contained in:
parent
854bc62caa
commit
0c582197da
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue