summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/models/news.rb2
1 files changed, 1 insertions, 1 deletions
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