Skip to content

Node.js based forum software built for the modern web

fix for post menu display on newPost

pichalite571f364922ed
diff --git a/public/src/client/topic/posts.js b/public/src/client/topic/posts.js
index 3059728e3b..8f8bf4ca7d 100644
--- a/public/src/client/topic/posts.js
+++ b/public/src/client/topic/posts.js
@@ -24,8 +24,9 @@ define('forum/topic/posts', [
data.loggedIn = app.user.uid ? true : false;
data.posts.forEach(function(post) {
post.selfPost = !!app.user.uid && parseInt(post.uid, 10) === parseInt(app.user.uid, 10);
- post.display_moderator_tools = post.selfPost || ajaxify.data.isAdminOrMod;
- post.display_move_tools = ajaxify.data.isAdminOrMod;
+ 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;
});
updatePostCounts(data.posts);