From 88b3872179b2174d022f85aa043c11d00fe4e886 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 23 Feb 2014 08:15:37 +0000 Subject: [PATCH] Merged r12914 (#16134). git-svn-id: http://svn.redmine.org/redmine/branches/2.5-stable@12922 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/models/news.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/news.rb b/app/models/news.rb index c1f6655a5..b86e3f63d 100644 --- a/app/models/news.rb +++ b/app/models/news.rb @@ -51,7 +51,7 @@ class News < ActiveRecord::Base end def recipients - project.users.select {|user| user.notify_about?(self)}.map(&:mail) + project.users.select {|user| user.notify_about?(self) && user.allowed_to?(:view_news, project)}.map(&:mail) end # Returns the email addresses that should be cc'd when a new news is added -- 2.39.5