fix: test

v1.18.x
Barış Soner Uşaklı 4 years ago
parent 7bf6d3b8eb
commit cb2f6f7c4a

@ -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) => {

Loading…
Cancel
Save