From 2c4d3fa317db1d271e0e3467b0c1092a3e492631 Mon Sep 17 00:00:00 2001 From: Robert Lebedeu Date: Mon, 16 Dec 2019 18:10:48 +0100 Subject: Fix checkBoardAccess authentication check --- server/authentication.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server') diff --git a/server/authentication.js b/server/authentication.js index 9e519fe1..20327280 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).isActive; + board.members.some(e => e.userId === userId && e.isActive); Authentication.checkAdminOrCondition(userId, normalAccess); }; -- cgit v1.2.3-1-g7c22