From: Tom Hughes Date: Wed, 8 Feb 2012 16:08:45 +0000 (+0000) Subject: Block any address with more than one suspended user X-Git-Tag: live~6453 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/5b2d2ff2f0482c56b6e8541bab6de84a940b0a82 Block any address with more than one suspended user --- diff --git a/script/update-spam-blocks b/script/update-spam-blocks index 381ef3c1a..8476fcb9d 100755 --- a/script/update-spam-blocks +++ b/script/update-spam-blocks @@ -12,7 +12,7 @@ addresses = User.count( ) addresses.each do |address,count| - if count > 2 + if count > 1 acl = Acl.find(:first, :conditions => { :address => address, })