prevent private notes from being sent to mattermost (refs #14)
This commit is contained in:
@@ -46,6 +46,7 @@ class MattermostListener < Redmine::Hook::Listener
|
||||
|
||||
return unless channel and url and Setting.plugin_redmine_mattermost[:post_updates] == '1'
|
||||
return if issue.is_private?
|
||||
return if journal.private_notes?
|
||||
|
||||
msg = "[#{escape issue.project}] #{escape journal.user.to_s} updated <#{object_url issue}|#{escape issue}>#{mentions journal.notes}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user