blob: 3e141f0649077d70752c4ec69d9a5bac2d942d32 (
plain)
1
2
3
4
5
6
7
8
|
allowIsBoardAdmin = function(userId, board) {
const admins = _.pluck(_.where(board.members, {isAdmin: true}), 'userId');
return _.contains(admins, userId);
};
allowIsBoardMember = function(userId, board) {
return _.contains(_.pluck(board.members, 'userId'), userId);
};
|