From 5e9414365c667c8bd36010ae828dc6c68929cb68 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sun, 12 Feb 2012 14:53:07 +0000 Subject: [PATCH] Make ACLs match when the address is equal --- app/models/acl.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.43.2