This commit is contained in:
barisusakli
2016-02-24 22:15:37 +02:00
parent 1349c4907d
commit 34f68a029a
2 changed files with 2 additions and 0 deletions

View File

@@ -143,6 +143,7 @@ module.exports = function(Topics) {
if (post) {
post.display_moderator_tools = topicPrivileges.isAdminOrMod || post.selfPost;
post.display_move_tools = topicPrivileges.isAdminOrMod && post.index !== 0;
post.display_post_menu = topicPrivileges.isAdminOrMod || post.selfPost || !post.deleted;
if (post.deleted && !(topicPrivileges.isAdminOrMod || post.selfPost)) {
post.content = '[[topic:post_is_deleted]]';
}