Commit 849622d8 authored by http://jneen.net/'s avatar http://jneen.net/ Committed by Felipe Artur

don't send SD customers notifications of their own issues

parent 265bd122
...@@ -17,6 +17,7 @@ module EE ...@@ -17,6 +17,7 @@ module EE
return unless issue.service_desk_reply_to.present? return unless issue.service_desk_reply_to.present?
return unless issue.project.service_desk_enabled? return unless issue.project.service_desk_enabled?
return if note.author == User.support_bot
return unless issue.subscribed?(::User.support_bot, issue.project) return unless issue.subscribed?(::User.support_bot, issue.project)
Notify.service_desk_new_note_email(issue.id, note.id) Notify.service_desk_new_note_email(issue.id, note.id)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment