Skip to content

Commit

Permalink
fix: test
Browse files Browse the repository at this point in the history
  • Loading branch information
barisusakli committed Oct 5, 2020
1 parent 7bf6d3b commit cb2f6f7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/controllers/mods.js
Expand Up @@ -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) => {
Expand Down

0 comments on commit cb2f6f7

Please sign in to comment.