From: Jean-Philippe Lang Date: Sun, 27 Mar 2011 15:12:38 +0000 (+0000) Subject: Do not send reminders to locked users (#5773). X-Git-Tag: 1.2.0~619 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a2baf9f69523f053803cc83c2e54323a14cfdba8;p=redmine.git 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 --- 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