prevent private notes from being sent to mattermost (refs #14)

This commit is contained in:
Thanos Kyritsis
2016-10-18 17:56:52 +03:00
parent f89232d657
commit 2a3e52f80f
2 changed files with 2 additions and 1 deletions

View File

@@ -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}"