FIX: Only show topic timer to staff
This commit is contained in:
parent
37e5ee858f
commit
e3e6fd6ea0
|
@ -140,11 +140,12 @@ export default createWidget('topic-admin-menu', {
|
||||||
icon: 'lock',
|
icon: 'lock',
|
||||||
label: 'actions.close' });
|
label: 'actions.close' });
|
||||||
}
|
}
|
||||||
|
if (this.currentUser.get('staff')) {
|
||||||
buttons.push({ className: 'topic-admin-status-update',
|
buttons.push({ className: 'topic-admin-status-update',
|
||||||
action: 'showTopicStatusUpdate',
|
action: 'showTopicStatusUpdate',
|
||||||
icon: 'clock-o',
|
icon: 'clock-o',
|
||||||
label: 'actions.timed_update' });
|
label: 'actions.timed_update' });
|
||||||
|
}
|
||||||
|
|
||||||
const isPrivateMessage = topic.get('isPrivateMessage');
|
const isPrivateMessage = topic.get('isPrivateMessage');
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue