From fe42eb1d014c06dfed8114a00b29eac9b08baec6 Mon Sep 17 00:00:00 2001 From: Lauri Ojansivu Date: Wed, 17 Jul 2019 03:11:37 +0300 Subject: [PATCH] Add check for isActive. Thanks to xet ! --- server/authentication.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/authentication.js b/server/authentication.js index 20477bc53..9e519fe15 100644 --- a/server/authentication.js +++ b/server/authentication.js @@ -58,7 +58,7 @@ Meteor.startup(() => { const board = Boards.findOne({ _id: boardId }); const normalAccess = board.permission === 'public' || - board.members.some(e => e.userId === userId); + board.members.some(e => e.userId === userId).isActive; Authentication.checkAdminOrCondition(userId, normalAccess); };