bugfix report bans

merge-requests/208/head
fatchan 4 years ago
parent 7be9eff042
commit 940cba8837
  1. 2
      controllers/forms/actions.js
  2. 4
      controllers/forms/globalactions.js

@ -27,6 +27,8 @@ module.exports = async (req, res, next) => {
//50 because checked posts is max 10 and 5 reports max per post
errors.push('Cannot check more than 50 reports');
}
} else if (!req.body.checkedreports && req.body.report_ban) {
errors.push('Must select posts+reports to report ban');
}
res.locals.actions = actionChecker(req);

@ -24,7 +24,9 @@ module.exports = async (req, res, next) => {
//50 because checked posts is max 10 and 5 reports max per post
errors.push('Cannot check more than 50 reports');
}
}
} else if (!req.body.checkedreports && req.body.global_report_ban) {
errors.push('Must select posts+reports to report ban');
}
res.locals.actions = actionChecker(req);

Loading…
Cancel
Save