diff options
author | Alex Legler <a3li@gentoo.org> | 2011-10-14 11:35:57 +0200 |
---|---|---|
committer | Alex Legler <a3li@gentoo.org> | 2011-10-14 11:35:57 +0200 |
commit | 8348a227cfb48c0d00a254f1d81b8ea8adac2339 (patch) | |
tree | d76e3a1670a5774051b65c50f7a62040c6fcc23e /lib | |
parent | Add manual exception notification in log_error (diff) | |
download | glsamaker-8348a227cfb48c0d00a254f1d81b8ea8adac2339.tar.gz glsamaker-8348a227cfb48c0d00a254f1d81b8ea8adac2339.tar.bz2 glsamaker-8348a227cfb48c0d00a254f1d81b8ea8adac2339.zip |
Don't email disabled users
Diffstat (limited to 'lib')
-rw-r--r-- | lib/glsamaker/mail.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/glsamaker/mail.rb b/lib/glsamaker/mail.rb index d85d690..b749193 100644 --- a/lib/glsamaker/mail.rb +++ b/lib/glsamaker/mail.rb @@ -22,7 +22,7 @@ module Glsamaker return false end - User.find(:all, :conditions => 'id > 0').each do |rcpt| + User.active.each do |rcpt| next unless rcpt.can_access? glsa unless rcpt.get_pref_category(:mail)[:edit] == false @@ -42,7 +42,7 @@ module Glsamaker return false end - User.find(:all, :conditions => 'id > 0').each do |rcpt| + User.active.each do |rcpt| next unless rcpt.can_access? glsa unless rcpt.get_pref_category(:mail)[:request] == false |