From 48ac8b026ffdf8b3823c573e5693dcf1765383e2 Mon Sep 17 00:00:00 2001 From: Maxime Quandalle Date: Sun, 23 Aug 2015 11:09:48 +0200 Subject: Implement board archive and restoration --- collections/users.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'collections') diff --git a/collections/users.js b/collections/users.js index 043f93e5..28b63ba7 100644 --- a/collections/users.js +++ b/collections/users.js @@ -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 || []; -- cgit v1.2.3-1-g7c22