FIX: Don't show moderation history option to TL4
This commit is contained in:
parent
89d1107f81
commit
6cffbb4ea4
|
@ -16,7 +16,7 @@ export function buildManageButtons(attrs, currentUser) {
|
||||||
}
|
}
|
||||||
|
|
||||||
let contents = [];
|
let contents = [];
|
||||||
if (attrs.canManage) {
|
if (currentUser.staff) {
|
||||||
contents.push({
|
contents.push({
|
||||||
icon: 'list',
|
icon: 'list',
|
||||||
label: 'admin.flags.moderation_history',
|
label: 'admin.flags.moderation_history',
|
||||||
|
|
|
@ -185,11 +185,13 @@ export default createWidget('topic-admin-menu', {
|
||||||
label: isPrivateMessage ? 'actions.make_public' : 'actions.make_private' });
|
label: isPrivateMessage ? 'actions.make_public' : 'actions.make_private' });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (this.currentUser.get('staff')) {
|
||||||
buttons.push({
|
buttons.push({
|
||||||
action: 'showModerationHistory',
|
action: 'showModerationHistory',
|
||||||
icon: 'list',
|
icon: 'list',
|
||||||
fullLabel: 'admin.flags.moderation_history'
|
fullLabel: 'admin.flags.moderation_history'
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
const extraButtons = applyDecorators(this, 'adminMenuButtons', this.attrs, this.state);
|
const extraButtons = applyDecorators(this, 'adminMenuButtons', this.attrs, this.state);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue