Node.js based forum software built for the modern web
fix: dont let mods load postqueue for a cid they are not a mod of
Barış Soner Uşaklı7bf6d3b8eba0
diff --git a/src/controllers/mods.js b/src/controllers/mods.jsindex 017f6ef4ba..fe9c357d8a 100644--- a/src/controllers/mods.js+++ b/src/controllers/mods.js@@ -213,7 +213,9 @@ modsController.postQueue = async function (req, res, next) {categories.buildForSelect(req.uid, 'find', ['disabled', 'link', 'slug']),helpers.getCategoriesByStates(req.uid, cid, null, 'moderate'),]);-+ if (!moderatedCids.includes(String(cid)) && !isAdminOrGlobalMod) {+ return next();+ }allCategories.forEach((c) => {c.disabledClass = !isAdminOrGlobalMod && !moderatedCids.includes(String(c.cid));});