diff options
Diffstat (limited to 'models/users.js')
-rw-r--r-- | models/users.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/models/users.js b/models/users.js index 3700d1c8..a9eeb38b 100644 --- a/models/users.js +++ b/models/users.js @@ -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); }, }); |