summaryrefslogtreecommitdiffstats
path: root/app/models/message.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/message.rb')
-rw-r--r--app/models/message.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/message.rb b/app/models/message.rb
index 5ca8d7ea7..de7ebaab5 100644
--- a/app/models/message.rb
+++ b/app/models/message.rb
@@ -103,6 +103,10 @@ class Message < ActiveRecord::Base
usr && usr.logged? && (usr.allowed_to?(:delete_messages, project) || (self.author == usr && usr.allowed_to?(:delete_own_messages, project)))
end
+ def notified_users
+ project.notified_users.reject {|user| !visible?(user)}
+ end
+
private
def add_author_as_watcher