FIX: Anonymous timeline bug
This commit is contained in:
parent
90330d30f4
commit
ee01c275fb
|
@ -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 }));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue