Skip to content

Hide user avatar for blocked and unconfirmed users

Drew Blessing requested to merge dblessing_avatar_for_blocked_users into master

What does this MR do and why?

Follow-up to #341325 (closed) and !75032 (merged) (merged).

We should mask the user avatar for blocked or unconfirmed users to avoid it being used for spam. You can see in screenshots below this also masks the Gravatar for a user, so they can't even show spam via that external service when they're blocked in GitLab.

Admin users are always able to see the user avatar regardless of status.

Screenshots or screen recordings

Before

Screen_Shot_2021-12-03_at_10.31.47_AM

After

Screen_Shot_2021-12-03_at_10.24.48_AM

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Drew Blessing

Merge request reports