user profile modal: Hide email under hidden email-address-visibility case.

When email address visibility is set to everyone, there is no change in
behavior, but when it is set to "admins-only", we don't show any email
in user profile modal (just like popovers) for everyone but admins.
This commit is contained in:
Pragati Agrawal 2019-08-11 22:02:22 +05:30 committed by Tim Abbott
parent b1318edbea
commit 37f10509f8
1 changed files with 1 additions and 1 deletions

View File

@ -304,7 +304,7 @@ exports.show_user_profile = function (user) {
var args = {
full_name: user.full_name,
email: user.email,
email: get_visible_email(user),
profile_data: profile_data,
user_avatar: "avatar/" + user.email + "/medium",
is_me: people.is_current_user(user.email),