Merge pull request #4416 from BenLubar/email-hidden-symbol-for-staff

show the crossed-out eye icon for private email addresses
v1.18.x
Barış Soner Uşaklı 9 years ago
commit 4d92ddf634

@ -64,12 +64,14 @@ helpers.getUserDataByUserSlug = function(userslug, callerUID, callback) {
userData.lastonlineISO = utils.toISOString(userData.lastonline || userData.joindate);
userData.age = Math.max(0, userData.birthday ? Math.floor((new Date().getTime() - new Date(userData.birthday).getTime()) / 31536000000) : 0);
userData.emailClass = 'hide';
if (!(isAdmin || isGlobalModerator || self || (userData.email && userSettings.showemail))) {
userData.email = '';
} else if (!userSettings.showemail) {
userData.emailClass = '';
}
userData.emailClass = (self && !userSettings.showemail) ? '' : 'hide';
if (!isAdmin && !isGlobalModerator && !self && !userSettings.showfullname) {
userData.fullname = '';
}
@ -172,4 +174,4 @@ function filterLinks(links, self) {
});
}
module.exports = helpers;
module.exports = helpers;

Loading…
Cancel
Save