]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/acl.rb
Make danger labels use consisent capitalisation
[rails.git] / app / models / acl.rb
index a65c3a35ad68977fe1a1da5f6296c280006145a0..aa503f40c539647dfb9d66aea990b57e6f8c76c6 100644 (file)
@@ -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