FIX: Anonymous timeline bug

This commit is contained in:
Robin Ward 2016-05-20 16:08:42 -04:00
parent 90330d30f4
commit ee01c275fb
No known key found for this signature in database
GPG Key ID: 0E091E2B4ED1B83D
1 changed files with 2 additions and 1 deletions

View File

@ -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 }));
}