return early for guests/spiders

This commit is contained in:
Barış Soner Uşaklı
2018-11-24 23:15:10 -05:00
parent 7b9a2caec3
commit 13139fe77e

View File

@@ -91,6 +91,9 @@ module.exports = function (privileges) {
}
function isModeratorOfCategory(cid, uid, callback) {
if (parseInt(uid, 10) <= 0) {
return filterIsModerator(cid, uid, false, callback);
}
async.waterfall([
function (next) {
async.parallel([