Merge pull request #4418 from BenLubar/post-tools-stream

fix post tools not showing up for other users on new posts
This commit is contained in:
Barış Soner Uşaklı
2016-03-21 10:27:17 +02:00

View File

@@ -26,7 +26,7 @@ define('forum/topic/posts', [
post.selfPost = !!app.user.uid && parseInt(post.uid, 10) === parseInt(app.user.uid, 10);
post.display_moderator_tools = post.selfPost || ajaxify.data.privileges.isAdminOrMod;
post.display_move_tools = ajaxify.data.privileges.isAdminOrMod;
post.display_post_menu = post.selfPost || ajaxify.data.privileges.isAdminOrMod;
post.display_post_menu = post.selfPost || ajaxify.data.privileges.isAdminOrMod || !post.deleted;
});
updatePostCounts(data.posts);
@@ -263,4 +263,4 @@ define('forum/topic/posts', [
return Posts;
});
});