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

@@ -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'

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