فهرست منبع

Fix checkBoardAccess authentication check

Robert Lebedeu 5 سال پیش
والد
کامیت
2c4d3fa317
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  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).isActive;
+      board.members.some(e => e.userId === userId && e.isActive);
     Authentication.checkAdminOrCondition(userId, normalAccess);
   };