mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 19:37:55 +08:00
Change timestamp only for admin.
This commit is contained in:
parent
889902256b
commit
8354768d7c
|
@ -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