FIX: You shouldn't be able to convert a whisper to a moderator post

This commit is contained in:
Robin Ward 2016-03-01 15:30:28 -05:00
parent 08e43588f6
commit e6b95e56d7
1 changed files with 2 additions and 1 deletions

View File

@ -23,7 +23,8 @@ export default createWidget('post-admin-menu', {
const contents = []; const contents = [];
contents.push(h('h3', I18n.t('admin_title'))); 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' }; const buttonAtts = { action: 'togglePostType', icon: 'shield', className: 'toggle-post-type' };
if (attrs.isModeratorAction) { if (attrs.isModeratorAction) {