mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-24 01:10:31 +01:00
Respond with 404 when topic inside hidden category
This commit is contained in:
@@ -119,6 +119,10 @@ topicsController.get = function(req, res, callback) {
|
|||||||
return next(err);
|
return next(err);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (topicData.category.disabled) {
|
||||||
|
return callback();
|
||||||
|
}
|
||||||
|
|
||||||
topics.modifyByPrivilege(topicData.posts, results.privileges);
|
topics.modifyByPrivilege(topicData.posts, results.privileges);
|
||||||
|
|
||||||
plugins.fireHook('filter:controllers.topic.get', topicData, next);
|
plugins.fireHook('filter:controllers.topic.get', topicData, next);
|
||||||
|
|||||||
Reference in New Issue
Block a user