Browse Source

Add check for isActive.

Thanks to xet !
Lauri Ojansivu 5 years ago
parent
commit
fe42eb1d01
1 changed files with 1 additions and 1 deletions
  1. 1 1
      server/authentication.js

+ 1 - 1
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);
   };