diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-02-03 14:28:54 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-02-03 14:28:54 +0300 |
commit | 41fd6d4d38aaef723e501ff3ab38ae63e31d4efb (patch) | |
tree | 65f9e06d467a90b39cfc7ea6debc3864d219f7cb /app/finders | |
parent | abbf44bd6cfb29413b3cf5768b691e5b222b89ea (diff) |
Add latest changes from gitlab-org/security/gitlab@14-7-stable-ee
Diffstat (limited to 'app/finders')
-rw-r--r-- | app/finders/users_finder.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/finders/users_finder.rb b/app/finders/users_finder.rb index 8054ecbd502..2b4ce615090 100644 --- a/app/finders/users_finder.rb +++ b/app/finders/users_finder.rb @@ -74,7 +74,7 @@ class UsersFinder def by_search(users) return users unless params[:search].present? - users.search(params[:search]) + users.search(params[:search], with_private_emails: current_user&.admin?) end def by_blocked(users) |