diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-07-13 10:32:48 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-07-13 10:32:48 +0000 |
commit | 0087d237f76458f0db7ec552de2972e1d70c3838 (patch) | |
tree | 3dbb392650a73db6450c48c3eeba9496c3ce4c30 /app/models/mailer.rb | |
parent | 7509dda1ff5877f36c63aab35bde4403bc23ccd9 (diff) | |
download | redmine-0087d237f76458f0db7ec552de2972e1d70c3838.tar.gz redmine-0087d237f76458f0db7ec552de2972e1d70c3838.zip |
Don't notify users about relations that are not visible (#1005).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12015 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/mailer.rb')
-rw-r--r-- | app/models/mailer.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/app/models/mailer.rb b/app/models/mailer.rb index 6a8aded13..c6822362e 100644 --- a/app/models/mailer.rb +++ b/app/models/mailer.rb @@ -81,9 +81,10 @@ class Mailer < ActionMailer::Base issue = journal.journalized.reload to = journal.notified_users cc = journal.notified_watchers - issue.each_notification(to + cc) do |users| - next unless journal.notes? || journal.visible_details(users.first).any? - Mailer.issue_edit(journal, to & users, cc & users).deliver + journal.each_notification(to + cc) do |users| + issue.each_notification(users) do |users2| + Mailer.issue_edit(journal, to & users2, cc & users2).deliver + end end end |