mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Anonymous timeline bug
This commit is contained in:
@@ -210,7 +210,8 @@ export default createWidget('topic-timeline', {
|
||||
}));
|
||||
}
|
||||
|
||||
if (this.currentUser.get('canManageTopic')) {
|
||||
const { currentUser } = this;
|
||||
if (currentUser && currentUser.get('canManageTopic')) {
|
||||
controls.push(this.attach('topic-admin-menu-button', { topic }));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user