prevent private notes from being sent to mattermost (refs #14)
This commit is contained in:
2
init.rb
2
init.rb
@@ -8,7 +8,7 @@ Redmine::Plugin.register :redmine_mattermost do
|
||||
url 'https://github.com/altsol/redmine_mattermost'
|
||||
author_url 'http://altsol.gr'
|
||||
description 'Mattermost chat integration'
|
||||
version '0.4'
|
||||
version '0.5'
|
||||
|
||||
requires_redmine :version_or_higher => '2.0.0'
|
||||
|
||||
|
||||
@@ -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