]> git.openstreetmap.org Git - rails.git/blobdiff - script/update-spam-blocks
Merge pull request #26 from karussell/patch-2
[rails.git] / script / update-spam-blocks
index 3cb9dcedd696deedec465ef82ffbbe975380c21f..c21b17cff0ca0293bd3962fabc1f78a2714f6919 100755 (executable)
@@ -18,11 +18,11 @@ addresses.each do |address,count|
     })
 
     unless acl
     })
 
     unless acl
-      Acl.create(
+      Acl.create({
         :address => address,
         :k => "no_account_creation",
         :v => "auto_spam_block"
         :address => address,
         :k => "no_account_creation",
         :v => "auto_spam_block"
-      )
+      }, :without_protection => true)
 
       puts "Blocked #{address}"
     end
 
       puts "Blocked #{address}"
     end