From fab2146a31690777d132df1bdbcc549146a68e86 Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Wed, 27 May 2015 16:19:40 +0930 Subject: [PATCH] Hide "mark all as read" button from guests --- framework/core/js/forum/src/components/index-page.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()