Add importer role that can be associated with higher rate limits
This commit is contained in:
parent
b5995c5175
commit
c6bb4a5f4e
12 changed files with 244 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue