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