Unverified Commit 39c31e75 authored by Ahmad Farhat's avatar Ahmad Farhat Committed by GitHub
Browse files

Fixed issue causing manage users to through 500 (#1778)

parent 62da03b9
......@@ -23,7 +23,7 @@ module Populator
def manage_users_list
current_role = @role
initial_user = case @tab
initial_list = case @tab
when "active"
User.without_role([:pending, :denied])
when "deleted"
......@@ -34,7 +34,7 @@ module Populator
current_role = Role.find_by(name: @tab, provider: @user_domain) if @tab == "pending" || @tab == "denied"
initial_list = initial_user.without_role(:super_admin) unless current_user.has_role? :super_admin
initial_list = initial_list.without_role(:super_admin) unless current_user.has_role? :super_admin
initial_list = initial_list.where(provider: @user_domain) if Rails.configuration.loadbalanced_configuration
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment