summaryrefslogtreecommitdiffstats
path: root/client/components/boards/boardBody.js
diff options
context:
space:
mode:
authorIgnatzHome <ignatz@maschath.de>2018-06-14 19:42:09 +0200
committerIgnatzHome <ignatz@maschath.de>2018-06-14 19:42:09 +0200
commita433f7d9fe310e1aa5f5c831b2bfacb5b86c941e (patch)
tree6e30c7ebc0106518ec5ea76bcb57d294cc9f48f1 /client/components/boards/boardBody.js
parent991e74bfc287d840951b7c707b7ff2a2f26e5001 (diff)
parentfcf262cc9807c1e87e638ce6b0c6151ae2114f60 (diff)
downloadwekan-a433f7d9fe310e1aa5f5c831b2bfacb5b86c941e.tar.gz
wekan-a433f7d9fe310e1aa5f5c831b2bfacb5b86c941e.tar.bz2
wekan-a433f7d9fe310e1aa5f5c831b2bfacb5b86c941e.zip
Merge branch 'feature-custom-fields' of https://github.com/feuerball11/wekan into feature-custom-fields
Diffstat (limited to 'client/components/boards/boardBody.js')
-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');
},