Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-02-03 14:28:54 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-02-03 14:28:54 +0300
commit41fd6d4d38aaef723e501ff3ab38ae63e31d4efb (patch)
tree65f9e06d467a90b39cfc7ea6debc3864d219f7cb /app/finders
parentabbf44bd6cfb29413b3cf5768b691e5b222b89ea (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.rb2
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)