FIX: Only show topic timer to staff

This commit is contained in:
Joshua Rosenfeld 2017-08-28 23:49:30 -04:00 committed by GitHub
parent 37e5ee858f
commit e3e6fd6ea0
1 changed files with 3 additions and 2 deletions

View File

@ -140,11 +140,12 @@ export default createWidget('topic-admin-menu', {
icon: 'lock',
label: 'actions.close' });
}
buttons.push({ className: 'topic-admin-status-update',
if (this.currentUser.get('staff')) {
buttons.push({ className: 'topic-admin-status-update',
action: 'showTopicStatusUpdate',
icon: 'clock-o',
label: 'actions.timed_update' });
}
const isPrivateMessage = topic.get('isPrivateMessage');