summaryrefslogtreecommitdiffstats
path: root/app/models/mailer.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2011-03-27 15:12:38 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2011-03-27 15:12:38 +0000
commita2baf9f69523f053803cc83c2e54323a14cfdba8 (patch)
tree4e31487a9b7ceed9cf9d7c178ab8edb98240883e /app/models/mailer.rb
parentca5951b4f621ec003d70a85362f34af63e38577f (diff)
downloadredmine-a2baf9f69523f053803cc83c2e54323a14cfdba8.tar.gz
redmine-a2baf9f69523f053803cc83c2e54323a14cfdba8.zip
Do not send reminders to locked users (#5773).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5225 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/mailer.rb')
-rw-r--r--app/models/mailer.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/mailer.rb b/app/models/mailer.rb
index 3249a6ac2..7efa7c998 100644
--- a/app/models/mailer.rb
+++ b/app/models/mailer.rb
@@ -344,7 +344,7 @@ class Mailer < ActionMailer::Base
:conditions => s.conditions
).group_by(&:assigned_to)
issues_by_assignee.each do |assignee, issues|
- deliver_reminder(assignee, issues, days) unless assignee.nil?
+ deliver_reminder(assignee, issues, days) if assignee && assignee.active?
end
end