Merge pull request #4757 from nbianca/change_timestamp_bug

Change timestamp only for admin.
This commit is contained in:
Guo Xiang Tan 2017-03-15 10:44:19 +08:00 committed by GitHub
commit 911d6abfad

View File

@ -137,10 +137,13 @@ export default createWidget('topic-admin-menu', {
icon: 'thumb-tack',
label: featured ? 'actions.unpin' : 'actions.pin' });
}
buttons.push({ className: 'topic-admin-change-timestamp',
action: 'showChangeTimestamp',
icon: 'calendar',
label: 'change_timestamp.title' });
if (this.currentUser.admin) {
buttons.push({ className: 'topic-admin-change-timestamp',
action: 'showChangeTimestamp',
icon: 'calendar',
label: 'change_timestamp.title' });
}
if (!isPrivateMessage) {
buttons.push({ className: 'topic-admin-archive',