From 5dbeb2d1625c3dcd46a67220ddce250d9bc3f7bd Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Mon, 1 May 2023 12:13:38 +0000 Subject: Add latest changes from gitlab-org/security/gitlab@15-9-stable-ee --- app/helpers/avatars_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app') diff --git a/app/helpers/avatars_helper.rb b/app/helpers/avatars_helper.rb index 0fac2cb5fc5..57075a44d0f 100644 --- a/app/helpers/avatars_helper.rb +++ b/app/helpers/avatars_helper.rb @@ -116,7 +116,7 @@ module AvatarsHelper private def avatar_icon_by_user_email_or_gravatar(email, size, scale, only_path:) - user = User.find_by_any_email(email) + user = User.with_public_email(email).first if user avatar_icon_for_user(user, size, scale, only_path: only_path) -- cgit v1.2.3