Browse Source

Add check for isActive.

Thanks to xet !
Lauri Ojansivu 6 năm trước cách đây
mục cha
commit
fe42eb1d01
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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);
   };