From a2baf9f69523f053803cc83c2e54323a14cfdba8 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 27 Mar 2011 15:12:38 +0000 Subject: [PATCH] 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 --- app/models/mailer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5