Add importer role that can be associated with higher rate limits

This commit is contained in:
Tom Hughes 2023-10-29 15:34:12 +00:00
parent b5995c5175
commit c6bb4a5f4e
12 changed files with 244 additions and 2 deletions

View file

@ -23,7 +23,7 @@ class UserRole < ApplicationRecord
belongs_to :user
belongs_to :granter, :class_name => "User"
ALL_ROLES = %w[administrator moderator].freeze
ALL_ROLES = %w[administrator moderator importer].freeze
validates :role, :inclusion => ALL_ROLES, :uniqueness => { :scope => :user_id }
end