summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorIgnatz <computer-freak94@gmx.de>2018-06-14 10:55:53 +0200
committerIgnatz <computer-freak94@gmx.de>2018-06-14 10:55:53 +0200
commit8ec60879dc1666e9129c5f690da06c2931135fc5 (patch)
tree3aee36adbdf4a50531cc0cb6fc69fc85d8e0b763 /client
parent848d8ac95d810bfedf1150c79341861e4a8157ce (diff)
downloadwekan-8ec60879dc1666e9129c5f690da06c2931135fc5.tar.gz
wekan-8ec60879dc1666e9129c5f690da06c2931135fc5.tar.bz2
wekan-8ec60879dc1666e9129c5f690da06c2931135fc5.zip
hotfix public board
Diffstat (limited to 'client')
-rw-r--r--client/components/boards/boardBody.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/client/components/boards/boardBody.js b/client/components/boards/boardBody.js
index 456bf9b3..dfe7b8d2 100644
--- a/client/components/boards/boardBody.js
+++ b/client/components/boards/boardBody.js
@@ -88,11 +88,13 @@ BlazeComponent.extendComponent({
isViewSwimlanes() {
const currentUser = Meteor.user();
+ if (!currentUser) return false;
return (currentUser.profile.boardView === 'board-view-swimlanes');
},
isViewLists() {
const currentUser = Meteor.user();
+ if (!currentUser) return true;
return (currentUser.profile.boardView === 'board-view-lists');
},