Explorar o código

Fix checkBoardAccess authentication check

Robert Lebedeu %!s(int64=5) %!d(string=hai) anos
pai
achega
2c4d3fa317
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);
   };