This commit is contained in:
barisusakli
2015-09-17 13:37:04 -04:00
parent 8c2fdcc77c
commit 8af64ba984
5 changed files with 37 additions and 22 deletions

View File

@@ -40,6 +40,11 @@ topicsController.get = function(req, res, callback) {
}, next);
},
function (results, next) {
if (!results.topic.slug) {
return callback();
}
userPrivileges = results.privileges;
if (!userPrivileges.read || (parseInt(results.topic.deleted, 10) && !userPrivileges.view_deleted)) {