From abb1c1c010803f06bbb27c9c6918048dc21c13fc Mon Sep 17 00:00:00 2001 From: barisusakli Date: Wed, 15 Jun 2016 21:04:36 +0300 Subject: [PATCH] closes #4758 --- public/src/client/topic/posts.js | 1 + src/socket.io/posts.js | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/public/src/client/topic/posts.js b/public/src/client/topic/posts.js index db22a215a4..31cf70b30e 100644 --- a/public/src/client/topic/posts.js +++ b/public/src/client/topic/posts.js @@ -24,6 +24,7 @@ define('forum/topic/posts', [ } data.loggedIn = app.user.uid ? true : false; + data.privileges = ajaxify.data.privileges; 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.privileges.isAdminOrMod; diff --git a/src/socket.io/posts.js b/src/socket.io/posts.js index 90d7a79284..d08495d877 100644 --- a/src/socket.io/posts.js +++ b/src/socket.io/posts.js @@ -38,9 +38,6 @@ SocketPosts.reply = function(socket, data, callback) { var result = { posts: [postData], - privileges: { - 'topics:reply': true - }, 'reputation:disabled': parseInt(meta.config['reputation:disabled'], 10) === 1, 'downvote:disabled': parseInt(meta.config['downvote:disabled'], 10) === 1, };