users: Apply email_address_visibility policy on the users list.

In the emails-hidden case, for non-admins, we should remove the email
field from "Users" list in the organization settings page.

Tweaked by tabbott to correctly handle the bots and deactivated users pages.
This commit is contained in:
Pragati Agrawal
2019-06-20 18:28:28 +05:30
committed by Tim Abbott
parent ac2f1cea9c
commit 5b324e50ca
5 changed files with 20 additions and 3 deletions

View File

@@ -69,6 +69,7 @@ exports.build_page = function () {
settings_send_digest_emails: page_params.settings_send_digest_emails,
realm_digest_emails_enabled: page_params.realm_digest_emails_enabled,
realm_digest_weekday: page_params.realm_digest_weekday,
show_email: settings_org.show_email(),
development: page_params.development_environment,
plan_includes_wide_organization_logo: page_params.plan_includes_wide_organization_logo,
upgrade_text_for_wide_organization_logo: