mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-10 16:05:49 +01:00
misc fixes
handle spider uids properly
This commit is contained in:
@@ -84,7 +84,7 @@ userController.getUserDataByField = function (callerUid, field, fieldValue, call
|
||||
};
|
||||
|
||||
userController.getUserDataByUID = function (callerUid, uid, callback) {
|
||||
if (!parseInt(callerUid, 10) && meta.config.privateUserInfo) {
|
||||
if (parseInt(callerUid, 10) <= 0 && meta.config.privateUserInfo) {
|
||||
return callback(new Error('[[error:no-privileges]]'));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user