forked from External/greenlight
Removed default order by priority on roles (#1720)
This commit is contained in:
@ -22,7 +22,7 @@ class Role < ApplicationRecord
|
||||
|
||||
has_many :users
|
||||
|
||||
default_scope { includes(:role_permissions).distinct.order(:priority) }
|
||||
default_scope { includes(:role_permissions) }
|
||||
scope :by_priority, -> { order(:priority) }
|
||||
scope :editable_roles, ->(provider) { where(provider: provider).where.not(name: %w[super_admin denied pending]) }
|
||||
|
||||
|
Reference in New Issue
Block a user