mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
FIX: moderators should be able to search users by email
This commit is contained in:
@ -25,7 +25,6 @@ class Admin::UsersController < Admin::AdminController
|
||||
:revoke_api_key]
|
||||
|
||||
def index
|
||||
params.merge!({ admin: current_user.admin? })
|
||||
query = ::AdminUserIndexQuery.new(params)
|
||||
render_serialized(query.find_users, AdminUserSerializer)
|
||||
end
|
||||
|
Reference in New Issue
Block a user