X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/da546af22e724f81f441417aaff11b24e6051267..3e77cae66c99a2cf3e29356a64cd230343d9762f:/app/models/acl.rb diff --git a/app/models/acl.rb b/app/models/acl.rb index a65c3a35a..aa503f40c 100644 --- a/app/models/acl.rb +++ b/app/models/acl.rb @@ -41,6 +41,10 @@ class Acl < ApplicationRecord match(address, options).exists?(:k => "no_account_creation") end + def self.allow_account_creation(address, options = {}) + match(address, options).exists?(:k => "allow_account_creation") + end + def self.no_note_comment(address, domain = nil) match(address, :domain => domain).exists?(:k => "no_note_comment") end