XF 2.2 How to allow regular users to see all previous usernames

Moderators have a "See more" option to view all previous usernames for any user, but regular users can't do this. They only have the "See more" option for their own profile.

Viewing someone else's profile as a mod:
Screenshot 2024-04-01 165339.webp

Viewing someone else's profile as a regular user:
Screenshot 2024-04-01 165410.webp

How can I allow regular users to see all previous usernames for all members?
 
This is part of the built-in username change system.

I did a little more digging, and whether or not "See more" is shown (for users which aren't yourself) is tied to the "Bypass user privacy" right. It's laid out in the canViewFullUsernameHistory function of /src/XF/Entity/User.php.

It would be nice if it was its own permission which I could give to regular members without giving them all "Bypass user privacy". In my mind, username changes are more of a public record and not something private like online status.
 
Back
Top Bottom