浏览代码

hotfix public board

Ignatz 7 年之前
父节点
当前提交
8ec60879dc
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      client/components/boards/boardBody.js

+ 2 - 0
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');
   },