|
|
|
@ -213,7 +213,8 @@ 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) {
|
|
|
|
|
|
|
|
|
|
if (cid && !moderatedCids.includes(String(cid)) && !isAdminOrGlobalMod) {
|
|
|
|
|
return next();
|
|
|
|
|
}
|
|
|
|
|
allCategories.forEach((c) => {
|
|
|
|
|