X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/1f7bd08f4a8a6a626a0c1d7ed60f2dcd6a6801e8..ef7f3d800cbdd49b692df10d312e5fd880e2e938:/app/models/acl.rb diff --git a/app/models/acl.rb b/app/models/acl.rb index e2f163ea5..0c8996828 100644 --- a/app/models/acl.rb +++ b/app/models/acl.rb @@ -8,14 +8,14 @@ class Acl < ActiveRecord::Base end def self.no_account_creation(address, domain = nil) - self.match(address, domain).where(:k => "no_account_creation").exists? + match(address, domain).where(:k => "no_account_creation").exists? end def self.no_note_comment(address, domain = nil) - self.match(address, domain).where(:k => "no_note_comment").exists? + match(address, domain).where(:k => "no_note_comment").exists? end def self.no_trace_download(address, domain = nil) - self.match(address, domain).where(:k => "no_trace_download").exists? + match(address, domain).where(:k => "no_trace_download").exists? end end