diff --git a/framework/core/js/forum/src/components/index-page.js b/framework/core/js/forum/src/components/index-page.js index bd6356bf5..4b0f2838d 100644 --- a/framework/core/js/forum/src/components/index-page.js +++ b/framework/core/js/forum/src/components/index-page.js @@ -105,12 +105,12 @@ export default class IndexPage extends Component { }), ]), m('div.index-toolbar-action', [ - ActionButton.component({ + app.session.user() ? ActionButton.component({ title: 'Mark All as Read', icon: 'check', className: 'control-markAllAsRead btn btn-default btn-icon', onclick: this.markAllAsRead.bind(this) - }) + }) : '' ]) ]), app.cache.discussionList.view()