mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 12:13:37 +08:00
Merge pull request #4757 from nbianca/change_timestamp_bug
Change timestamp only for admin.
This commit is contained in:
commit
911d6abfad
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue
Block a user