From: Tom Hughes Date: Sun, 12 Feb 2012 14:53:07 +0000 (+0000) Subject: Make ACLs match when the address is equal X-Git-Tag: live~5838 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/5e9414365c667c8bd36010ae828dc6c68929cb68 Make ACLs match when the address is equal --- diff --git a/app/models/acl.rb b/app/models/acl.rb index 9938984aa..2db7fb765 100644 --- a/app/models/acl.rb +++ b/app/models/acl.rb @@ -1,9 +1,9 @@ class Acl < ActiveRecord::Base def self.match(address, domain = nil) if domain - condition = Acl.where("address >> ? OR domain = ?", address, domain) + condition = Acl.where("address >>= ? OR domain = ?", address, domain) else - condition = Acl.where("address >> ?", address) + condition = Acl.where("address >>= ?", address) end end