Moderators can see the "show associated accounts" button but can't use it

It seems like moderators can see the “show email”/“show associated accounts” button in user preferences of other users but can’t use it. Returning an error saying it’s forbidden(Error: 403) in the console. Here’s a screenshot:

My guess here is that this is only being half checked:

https://github.com/discourse/discourse/blob/84a10f8212ba4c5ea6e5923b6dba4d0f0e9c44c5/lib/guardian/user_guardian.rb#L69-L71

So, if “show_email_on_profile” is set to false, moderators should not see the button. @vinothkannans can sort it out.

4 Likes

This is fixed now as per the commit

https://github.com/discourse/discourse/commit/ed0120171c950924413234ff54d56bf763d7cdda

5 Likes

This topic was automatically closed after 2 days. New replies are no longer allowed.