2
0
Эх сурвалжийг харах

Add check for isActive.

Thanks to xet !
Lauri Ojansivu 5 жил өмнө
parent
commit
fe42eb1d01

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