Fix checkBoardAccess authentication check

reviewable/pr2854/r1
Robert Lebedeu 6 years ago
parent a4dbe98299
commit 2c4d3fa317
  1. 2
      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);
};

Loading…
Cancel
Save