mirror of
https://github.com/wekan/wekan.git
synced 2025-12-27 04:38:49 +01:00
Fix checkBoardAccess authentication check
This commit is contained in:
parent
a4dbe98299
commit
2c4d3fa317
1 changed files with 1 additions and 1 deletions
|
|
@ -58,7 +58,7 @@ Meteor.startup(() => {
|
||||||
const board = Boards.findOne({ _id: boardId });
|
const board = Boards.findOne({ _id: boardId });
|
||||||
const normalAccess =
|
const normalAccess =
|
||||||
board.permission === 'public' ||
|
board.permission === 'public' ||
|
||||||
board.members.some(e => e.userId === userId).isActive;
|
board.members.some(e => e.userId === userId && e.isActive);
|
||||||
Authentication.checkAdminOrCondition(userId, normalAccess);
|
Authentication.checkAdminOrCondition(userId, normalAccess);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue