diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-06-27 03:09:00 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-06-27 03:09:00 +0300 |
commit | 661be4dd35d8258dee746c26e919e6f552afbec9 (patch) | |
tree | 786fa64a5df921c3fccb10990e55c617dd23f33b /app/finders/users_finder.rb | |
parent | 2ff7b07dbc1f16c5cb70f8484d061b0a00005985 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/finders/users_finder.rb')
-rw-r--r-- | app/finders/users_finder.rb | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/app/finders/users_finder.rb b/app/finders/users_finder.rb index 57dbeca5c51..13c4aae5b25 100644 --- a/app/finders/users_finder.rb +++ b/app/finders/users_finder.rb @@ -80,15 +80,11 @@ class UsersFinder def by_search(users) return users unless params[:search].present? - if Feature.enabled?(:autocomplete_users_use_search_service) - users.search( - params[:search], - with_private_emails: current_user&.can_admin_all_resources?, - use_minimum_char_limit: params[:use_minimum_char_limit] - ) - else - users.search(params[:search], with_private_emails: current_user&.can_admin_all_resources?) - end + users.search( + params[:search], + with_private_emails: current_user&.can_admin_all_resources?, + use_minimum_char_limit: params[:use_minimum_char_limit] + ) end def by_blocked(users) |