mirror of https://github.com/zulip/zulip.git
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:
parent
b1318edbea
commit
37f10509f8
|
@ -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),
|
||||
|
|
Loading…
Reference in New Issue