mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 16:11:08 +08:00
FEATURE: new API to search for a user by email
This commit is contained in:
@ -114,6 +114,10 @@ class AdminUserIndexQuery
|
||||
end
|
||||
|
||||
def filter_by_search
|
||||
if params[:email].present?
|
||||
return @query.where('user_emails.email = ?', params[:email].downcase)
|
||||
end
|
||||
|
||||
filter = params[:filter]
|
||||
if filter.present?
|
||||
filter.strip!
|
||||
|
Reference in New Issue
Block a user