Fixed: locked users should not receive email notifications.

git-svn-id: http://redmine.rubyforge.org/svn/trunk@1075 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang committed 2008-01-17 19:58:03 +00:00
1 parent 32b9bf0ef2
commit 3e031b4243
3 files changed
+5 -5

No files matched your search

+1 -1
View File
@@ -18,7 +18,7 @@
class MessageObserver < ActiveRecord::Observer
def after_create(message)
# send notification to the authors of the thread
recipients = ([message.root] + message.root.children).collect {|m| m.author.mail if m.author}
recipients = ([message.root] + message.root.children).collect {|m| m.author.mail if m.author && m.author.active?}
# send notification to the board watchers
recipients += message.board.watcher_recipients
recipients = recipients.compact.uniq