X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/a41d500b9f65ec9f4e848effd38dc1ae117e7594..99bf0a01eb15a458cdc829274df9dc6b3760af0e:/app/models/user_role.rb?ds=sidebyside diff --git a/app/models/user_role.rb b/app/models/user_role.rb index a081361a7..332848e42 100644 --- a/app/models/user_role.rb +++ b/app/models/user_role.rb @@ -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