Add checklist feature

This commit is contained in:
lksime 2017-01-20 21:05:48 +08:00
parent 38c143b8bf
commit 59731af139
15 changed files with 462 additions and 2 deletions

View file

@ -5,3 +5,8 @@ allowIsBoardAdmin = function(userId, board) {
allowIsBoardMember = function(userId, board) {
return board && board.hasMember(userId);
};
allowIsBoardMemberByCard = function(userId, card) {
const board = card.board();
return board && board.hasMember(userId);
};

View file

@ -98,6 +98,7 @@ Meteor.publishRelations('board', function(boardId) {
this.cursor(Cards.find({ boardId }), function(cardId) {
this.cursor(CardComments.find({ cardId }));
this.cursor(Attachments.find({ cardId }));
this.cursor(Checklists.find({ cardId }));
});
if (board.members) {