mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-07-07 12:51:28 +02:00
return early for guests/spiders
This commit is contained in:
@@ -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([
|
||||
|
||||
Reference in New Issue
Block a user