FIX: Anonymous timeline bug
This commit is contained in:
parent
90330d30f4
commit
ee01c275fb
1 changed files with 2 additions and 1 deletions
|
@ -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 }));
|
controls.push(this.attach('topic-admin-menu-button', { topic }));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue