Node.js based forum software built for the modern web
fixes going into deleted topics for admins
barisusaklic7c54560bcac
diff --git a/src/controllers/topics.js b/src/controllers/topics.jsindex d407c07168..19980dfdc1 100644--- a/src/controllers/topics.js+++ b/src/controllers/topics.js@@ -45,7 +45,7 @@ topicsController.get = function(req, res, next) {topics.getTopicWithPosts(tid, uid, start, end, function (err, topicData) {if (topicData) {- if (parseInt(topicData.deleted, 10) === 1 && !userPrivileges.view_deleted) {+ if (parseInt(topicData.deleted, 10) === 1 && !userPrivileges.meta.view_deleted) {return next(new Error('[[error:no-topic]]'));}topicData.currentPage = page;