mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 03:55:55 +01:00
fixes going into deleted topics for admins
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user