mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 09:36:19 -05:00
FIX: You shouldn't be able to convert a whisper to a moderator post
This commit is contained in:
parent
08e43588f6
commit
e6b95e56d7
1 changed files with 2 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue