blob: bc3807bbb92812218e151048b3121df2edfc5496 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
allowIsBoardAdmin = function(userId, board) {
return board && board.hasAdmin(userId);
};
allowIsBoardMember = function(userId, board) {
return board && board.hasMember(userId);
};
allowIsBoardMemberByCard = function(userId, card) {
const board = card.board();
return board && board.hasMember(userId);
};
|