mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 12:36:02 +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);
|
||||
}
|
||||
|
||||
if (topicData.category.disabled) {
|
||||
return callback();
|
||||
}
|
||||
|
||||
topics.modifyByPrivilege(topicData.posts, results.privileges);
|
||||
|
||||
plugins.fireHook('filter:controllers.topic.get', topicData, next);
|
||||
|
||||
Reference in New Issue
Block a user