Merge pull request #5108 from discourse/jomaxro-patch-1

FIX: Only show topic timer to staff
This commit is contained in:
Guo Xiang Tan 2017-08-29 12:53:14 +09:00 committed by GitHub
commit 3d6c79de6d
1 changed files with 3 additions and 2 deletions

View File

@ -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');