Adjust filter for platform_admin user search and update views
This commit is contained in:

committed by
Sebastian Serth

parent
02c65af034
commit
998a12e6bc
@ -66,7 +66,7 @@ class User < ApplicationRecord
|
||||
|
||||
def self.ransackable_attributes(auth_object)
|
||||
if auth_object.admin?
|
||||
%w[name email external_id consumer_id role]
|
||||
%w[name email external_id consumer_id platform_admin]
|
||||
else
|
||||
%w[name external_id]
|
||||
end
|
||||
|
Reference in New Issue
Block a user