diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-01-17 19:58:03 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-01-17 19:58:03 +0000 |
commit | 3e031b4243b38c3739936ae143acf21d305cd570 (patch) | |
tree | d21badaf055782bef08928b6ae8e62dfe3bcd951 /app/models/message_observer.rb | |
parent | 32b9bf0ef265355cdb4e10559cfce250af03a30f (diff) | |
download | redmine-3e031b4243b38c3739936ae143acf21d305cd570.tar.gz redmine-3e031b4243b38c3739936ae143acf21d305cd570.zip |
Fixed: locked users should not receive email notifications.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1075 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/message_observer.rb')
-rw-r--r-- | app/models/message_observer.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/message_observer.rb b/app/models/message_observer.rb index 1c311e25f..c26805c1b 100644 --- a/app/models/message_observer.rb +++ b/app/models/message_observer.rb @@ -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 |