X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/550c4a3a45814fde5c809334c85f1ebc47659a82..952188c814382b4ee0a90f6fc6084542dd113e75:/app/models/acl.rb?ds=sidebyside 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