summaryrefslogtreecommitdiffstats
path: root/client/components/boards/boardBody.js
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2018-06-14 19:38:16 +0300
committerLauri Ojansivu <x@xet7.org>2018-06-14 19:38:16 +0300
commit85e02010d444453a4a682770522a65fcdc488c8b (patch)
tree4bdc971df59353fb2dffd03b6454ca0a4ef6cb16 /client/components/boards/boardBody.js
parentfa82efe7d24a18afbd99ba805bdc3666cf3ba863 (diff)
parentaeec9f6ef8d8de07c6c8b8001fe2bbeb012b9fa8 (diff)
downloadwekan-85e02010d444453a4a682770522a65fcdc488c8b.tar.gz
wekan-85e02010d444453a4a682770522a65fcdc488c8b.tar.bz2
wekan-85e02010d444453a4a682770522a65fcdc488c8b.zip
Merge branch 'feuerball11-feature-custom-fields' into devel
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');
},