X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/4d47cff5e1d359fa27c5c46d2706faae39a3eacc..81bac0b09b2d03de76c8885f6d77c9297a3ead34:/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