From e6b95e56d7cd21e7d0ee9a4ab966ba720fe01441 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Tue, 1 Mar 2016 15:30:28 -0500 Subject: [PATCH] FIX: You shouldn't be able to convert a whisper to a moderator post --- .../javascripts/discourse/widgets/post-admin-menu.js.es6 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/widgets/post-admin-menu.js.es6 b/app/assets/javascripts/discourse/widgets/post-admin-menu.js.es6 index 16590124ffa..37e4c642a74 100644 --- a/app/assets/javascripts/discourse/widgets/post-admin-menu.js.es6 +++ b/app/assets/javascripts/discourse/widgets/post-admin-menu.js.es6 @@ -23,7 +23,8 @@ export default createWidget('post-admin-menu', { const contents = []; contents.push(h('h3', I18n.t('admin_title'))); - if (this.currentUser.staff) { + + if (!attrs.isWhisper && this.currentUser.staff) { const buttonAtts = { action: 'togglePostType', icon: 'shield', className: 'toggle-post-type' }; if (attrs.isModeratorAction) {