debug isBoardAdmin on main page

This commit is contained in:
salleman 2020-04-13 15:46:29 +02:00
parent a68ecc079d
commit 35ae07e2a6
3 changed files with 7 additions and 3 deletions

View file

@ -377,8 +377,8 @@ if (Meteor.isClient) {
return board && board.hasWorker(this._id);
},
isBoardAdmin() {
const board = Boards.findOne(Session.get('currentBoard'));
isBoardAdmin(boardId = Session.get('currentBoard')) {
const board = Boards.findOne(boardId);
return board && board.hasAdmin(this._id);
},
});