Respond with 404 when topic inside hidden category

This commit is contained in:
Raphael Beer
2015-11-17 09:10:20 +01:00
parent 1b7ca555e0
commit cf7b7a8d4c

View File

@@ -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);