mirror of
https://github.com/wekan/wekan.git
synced 2025-12-24 03:10:12 +01:00
Fixed eslint errors
This commit is contained in:
parent
c59891d44b
commit
25b26657da
3 changed files with 13 additions and 13 deletions
|
|
@ -37,16 +37,16 @@ Meteor.startup(() => {
|
|||
error.statusCode = 403;
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
// Helper function. Will throw an error if the user does not have read only access to the given board
|
||||
Authentication.checkBoardAccess = function(userId, boardId) {
|
||||
Authentication.checkLoggedIn(userId);
|
||||
|
||||
const board = Boards.findOne({ _id: boardId });
|
||||
const normalAccess = board.permission === 'public' || board.members.some(e => e.userId === userId);
|
||||
const normalAccess = board.permission === 'public' || board.members.some((e) => e.userId === userId);
|
||||
Authentication.checkAdminOrCondition(userId, normalAccess);
|
||||
}
|
||||
};
|
||||
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue