From 571f364922ed8871ad996e9110d63111b7022246 Mon Sep 17 00:00:00 2001 From: pichalite Date: Fri, 26 Feb 2016 21:50:44 +0000 Subject: [PATCH] fix for post menu display on newPost --- public/src/client/topic/posts.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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);