mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 23:15:48 +01:00
closes #1254
This commit is contained in:
@@ -74,10 +74,6 @@ function getUserDataByUserSlug(userslug, callerUID, callback) {
|
||||
userData.age = Math.floor((new Date().getTime() - new Date(userData.birthday).getTime()) / 31536000000);
|
||||
}
|
||||
|
||||
function canSeeEmail() {
|
||||
return ;
|
||||
}
|
||||
|
||||
if (!(isAdmin || self || (userData.email && userSettings.showemail))) {
|
||||
userData.email = "";
|
||||
}
|
||||
|
||||
@@ -131,7 +131,7 @@ middleware.checkAccountPermissions = function(req, res, next) {
|
||||
}
|
||||
|
||||
if(isAdmin) {
|
||||
next();
|
||||
return next();
|
||||
}
|
||||
|
||||
if (res.locals.isAPI) {
|
||||
|
||||
Reference in New Issue
Block a user