Moderator email viewing rights changed?

Did the moderator rights change in de latest update? (2.2.0 beta6 +76)

We enter our member details into our CRM, including e-mail address. The e-mail address is no longer visible in the member profile for a user with moderator rights.

Is there a way to view the e-mail address for a moderator?

1 Like

Sort of. We removed the ability for moderators to view email addresses many updates ago (early 2018 if I recall correctly), but missed a spot (the user list in /admin). This was addressed in the most recent upgrade.

No, not at the moment. We had numerous requests for moderators to not be able to view emails. The requests were generally due to privacy concerns: some sites have moderators who are community volunteers, or otherwise not part of the company running the forums. Users of the forums consented to the company running the forum seeing their email, but not volunteers who are not subject to privacy rules and guidelines that a company employee would be.

6 Likes

Isn’t this behind a site setting?
Or rather behind a button click? That way the action is logged.

So, the Show Emails button still exists for the Admin Users page, but clicking it does nothing as a moderator, though it still logs the action in the Logs. The emails do not become visible. This feels broken to me.

It works on the Admin > User page and the Public User page though.

Testing on Sitepoint? You don’t have the commit yet…

Actually, looking at the deploy logs, most hosted sites don’t have it yet. Didn’t want to deploy too close to the holidays with most of the team off…

No, I tested on my Sandbox which I just upgraded. Should happen here too if you can impersonate a moderator

Edit:
Works for admins just not moderators.

That’s … unexpected. Will test when back to my PC.

OK, now I’m confused. Can you view emails as a moderator on your sandbox? I just tested on try.discourse.org and cannot.

2 Likes

I can on the public profile and the admin user profile pages clicking the show email button…

Screenshots

Admin User Page


Admin User List


(No change after clicking button)


Public Profile Page


Impersonated User Setup (moderator, TL3)

Your initial thought was correct. Can you confirm that the site setting moderators_view_emails is enabled on your sandbox. With that setting disabled (default) as a moderator I cannot see emails anywhere. With the setting enabled, the “show emails” button reappears for mods, clicking it on the admin user list does not reveal emails, but clicking it on admin user page and user profile does reveal it. Oddly enough clicking on the button in user preferences also doesn’t work.


This is indeed confusing, inconsistent, and the setting’s description isn’t exactly clear. @codinghorror, two suggestions:

  1. Fix the site setting moderators_view_emails so that it matches it’s description. It should only show the “show email” button on a user’s profile page, nothing else.
  2. Add a boolean site setting for moderator view email. When enabled, mods can access emails everywhere admins can. When disabled (default), no email access regardless of other settings.

#1 seems more pressing (the setting adds broken buttons for moderators), #2 could perhaps be a 2.3 feature? It has been requested a few times since we started hiding emails from moderators.

5 Likes

I do indeed.

Yes please. On our community the moderators use the email addresses fairly regularly.

1 Like

Isn’t there a third option here, to edit the copy for the setting (and fix any bugs) so it reflects the intent, which is show email to moderators on profile?

That wasn’t my understanding of the intent of the setting though. By default email is only shown on the user preferences page (/u/my/preferences) and to admins on the admin user page (/admin/users/{user_id}) - this setting shows it on the profile page (/u/my/summary) alongside the stats like join date, last seen, last posted, etc.

I wouldn’t personally object to changing the intent of the setting, but I don’t know the history of why this setting exists…

If you don’t know the history of the setting how do you know the intent? What I remember is the intent, which I thought was to allow moderators to see emails.

Possible it is buggy now though.

Per git blame @eviltrout introduced it 4 years ago: https://github.com/discourse/discourse/commit/dc789502f978903053f8f0e00070f0f0d18f963b

When I said “intent” I was referring to how it worked before we started restricting mods from seeing emails. I can’t speak to before that.

What I remember is us adding this setting to cover this exact scenario? Moderators who need email visibility.

1 Like

Thank you all for looking into this. I didn’t completely understand everything, but I did enable the option “show email on profile” and the moderators are able to see the e-mail address again. So that works for us.

Thanks again and Happy New Year!

2 Likes

We should improve the copy here @jomaxro to clarify this is to cover the moderator case.

3 Likes

Sure, I can update the copy here. So this setting, when enabled, should allow mods to view emails? Should it work only on their profile, or everywhere?

At the moment, with this setting enabled mods can see 4 show email buttons. 2 work, 2 don’t.

  • :white_check_mark: /admin/users/{user_id}: shows email and logs check email with context.
  • :white_check_mark: /u/{username}/summary: shows email and logs check email with context.
  • :x: /admin/users/list: does not show emails, does log check email without context. Reloads list of users.
  • :x: /u/{username}/preferences: does not show email, does not log check email. Reloads entire page (including header).
6 Likes