mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: tests
This commit is contained in:
@@ -34,10 +34,12 @@ categoryController.get = async function (req, res, next) {
|
|||||||
|
|
||||||
if (!categoryFields.slug ||
|
if (!categoryFields.slug ||
|
||||||
(categoryFields && categoryFields.disabled) ||
|
(categoryFields && categoryFields.disabled) ||
|
||||||
(userSettings.usePagination && currentPage < 1) ||
|
(userSettings.usePagination && currentPage < 1)) {
|
||||||
topicIndex < 0) {
|
|
||||||
return next();
|
return next();
|
||||||
}
|
}
|
||||||
|
if (topicIndex < 0) {
|
||||||
|
return helpers.redirect(res, '/category/' + categoryFields.slug);
|
||||||
|
}
|
||||||
|
|
||||||
if (!userPrivileges.read) {
|
if (!userPrivileges.read) {
|
||||||
return helpers.notAllowed(req, res);
|
return helpers.notAllowed(req, res);
|
||||||
|
|||||||
Reference in New Issue
Block a user