diff --git a/src/posts.js b/src/posts.js index 953b16e188..28aff71a18 100644 --- a/src/posts.js +++ b/src/posts.js @@ -36,7 +36,7 @@ var RDB = require('./redis.js'), 'user_rep' : user_data[uid].reputation || 0, 'gravatar' : user_data[uid].picture, 'fav_star_class' : vote_data[pid] ? 'icon-star' : 'icon-star-empty', - 'display_moderator_tools' : uid == current_user ? 'show' : 'none', + 'display_moderator_tools': (uid == current_user || viewer_data.reputation >= config.privilege_thresholds.manage_content) ? 'show' : 'none', 'edited-class': post_data.editor[i] !== null ? '' : 'none', 'editor': post_data.editor[i] !== null ? user_data[post_data.editor[i]].username : '', 'relativeEditTime': post_data.editTime !== null ? utils.relativeTime(post_data.editTime[i]) : '' diff --git a/src/user.js b/src/user.js index 74acb2a48e..d291de523e 100644 --- a/src/user.js +++ b/src/user.js @@ -36,7 +36,6 @@ var config = require('../config.js'), // a function I feel should be built in user not sure how baris is tackling this so oppa chicken wrapper here User.getMultipleUserFields = function(uids, fields, callback) { - console.log(uids); var uuids = uids.filter(function(value, index, self) { return self.indexOf(value) === index; });