FIX: Don't show moderation history option to TL4

This commit is contained in:
Robin Ward 2017-12-26 16:56:14 -05:00
parent 89d1107f81
commit 6cffbb4ea4
2 changed files with 8 additions and 6 deletions

View File

@ -16,7 +16,7 @@ export function buildManageButtons(attrs, currentUser) {
}
let contents = [];
if (attrs.canManage) {
if (currentUser.staff) {
contents.push({
icon: 'list',
label: 'admin.flags.moderation_history',

View File

@ -185,11 +185,13 @@ export default createWidget('topic-admin-menu', {
label: isPrivateMessage ? 'actions.make_public' : 'actions.make_private' });
}
if (this.currentUser.get('staff')) {
buttons.push({
action: 'showModerationHistory',
icon: 'list',
fullLabel: 'admin.flags.moderation_history'
});
}
const extraButtons = applyDecorators(this, 'adminMenuButtons', this.attrs, this.state);