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 = [];
|
||||
if (attrs.canManage) {
|
||||
if (currentUser.staff) {
|
||||
contents.push({
|
||||
icon: 'list',
|
||||
label: 'admin.flags.moderation_history',
|
||||
|
|
|
@ -185,11 +185,13 @@ export default createWidget('topic-admin-menu', {
|
|||
label: isPrivateMessage ? 'actions.make_public' : 'actions.make_private' });
|
||||
}
|
||||
|
||||
buttons.push({
|
||||
action: 'showModerationHistory',
|
||||
icon: 'list',
|
||||
fullLabel: 'admin.flags.moderation_history'
|
||||
});
|
||||
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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue