Implement board archive and restoration

This commit is contained in:
Maxime Quandalle 2015-08-23 11:09:48 +02:00
parent 9faaf07e02
commit 48ac8b026f
32 changed files with 138 additions and 42 deletions

View file

@ -14,7 +14,7 @@ Users.helpers({
},
starredBoards: function() {
var starredBoardIds = this.profile.starredBoards || [];
return Boards.find({_id: {$in: starredBoardIds}});
return Boards.find({archived: false, _id: {$in: starredBoardIds}});
},
hasStarred: function(boardId) {
var starredBoardIds = this.profile.starredBoards || [];