view_deleted fix for privs

v1.18.x
Julian Lam 11 years ago
parent 34b522f36d
commit 66225237a0

@ -70,7 +70,7 @@ module.exports = function(Topics) {
postData[i].display_move_tools = results.privileges[i].move;
postData[i].selfPost = parseInt(uid, 10) === parseInt(postData[i].uid, 10);
if(postData[i].deleted && !results.privileges[i].view_deleted) {
if(postData[i].deleted && !results.privileges[i].meta.view_deleted) {
postData[i].content = '[[topic:post_is_deleted]]';
}
}

Loading…
Cancel
Save