Skip to content
Snippets Groups Projects
Commit 87c5b12f authored by Nico De Ceulaer's avatar Nico De Ceulaer Committed by tiagonbotelho
Browse files

ensure also alternative email addresses are used when looking up user

parent 278e85bf
No related branches found
No related tags found
1 merge request!3222[WIP] Moves the stage and ref from the table in a ci commit build to a plain one line text
This commit is part of merge request !3222. Comments created here will be created in the context of that merge request.
...@@ -72,7 +72,7 @@ def avatar_icon(user_or_email = nil, size = nil, scale = 2) ...@@ -72,7 +72,7 @@ def avatar_icon(user_or_email = nil, size = nil, scale = 2)
if user_or_email.is_a?(User) if user_or_email.is_a?(User)
user = user_or_email user = user_or_email
else else
user = User.find_by(email: user_or_email.downcase) user = User.find_by_any_email(user_or_email.downcase)
end end
if user if user
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment