@@ -51,7 +51,7 class News < ActiveRecord::Base | |||||
51 | end |
|
51 | end | |
52 |
|
52 | |||
53 | def recipients |
|
53 | def recipients | |
54 | project.users.select {|user| user.notify_about?(self)}.map(&:mail) |
|
54 | project.users.select {|user| user.notify_about?(self) && user.allowed_to?(:view_news, project)}.map(&:mail) | |
55 | end |
|
55 | end | |
56 |
|
56 | |||
57 | # Returns the email addresses that should be cc'd when a new news is added |
|
57 | # Returns the email addresses that should be cc'd when a new news is added |
General Comments 0
You need to be logged in to leave comments.
Login now