]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/user.rb
Add importer role that can be associated with higher rate limits
[rails.git] / app / models / user.rb
index f804f4666b8c28a8e38f64a35837af2dcec65a29..3d74b3933ec2c7eaabdf49585ff8ba0206b8fa0d 100644 (file)
@@ -290,6 +290,12 @@ class User < ApplicationRecord
     role? "administrator"
   end
 
+  ##
+  # returns true if the user has the importer role, false otherwise
+  def importer?
+    role? "importer"
+  end
+
   ##
   # returns true if the user has the requested role
   def role?(role)