fixes going into deleted topics for admins

v1.18.x
barisusakli 11 years ago
parent 1e68974f50
commit c7c54560bc

@ -45,7 +45,7 @@ topicsController.get = function(req, res, next) {
topics.getTopicWithPosts(tid, uid, start, end, function (err, topicData) { topics.getTopicWithPosts(tid, uid, start, end, function (err, topicData) {
if (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]]')); return next(new Error('[[error:no-topic]]'));
} }
topicData.currentPage = page; topicData.currentPage = page;

Loading…
Cancel
Save