mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-09 07:25:46 +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);
|
userData.age = Math.floor((new Date().getTime() - new Date(userData.birthday).getTime()) / 31536000000);
|
||||||
}
|
}
|
||||||
|
|
||||||
function canSeeEmail() {
|
|
||||||
return ;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!(isAdmin || self || (userData.email && userSettings.showemail))) {
|
if (!(isAdmin || self || (userData.email && userSettings.showemail))) {
|
||||||
userData.email = "";
|
userData.email = "";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -131,7 +131,7 @@ middleware.checkAccountPermissions = function(req, res, next) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(isAdmin) {
|
if(isAdmin) {
|
||||||
next();
|
return next();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (res.locals.isAPI) {
|
if (res.locals.isAPI) {
|
||||||
|
|||||||
Reference in New Issue
Block a user