summaryrefslogtreecommitdiffstats
path: root/collections/users.js
diff options
context:
space:
mode:
authorMaxime Quandalle <maxime@quandalle.com>2015-08-23 11:09:48 +0200
committerMaxime Quandalle <maxime@quandalle.com>2015-08-26 19:59:44 +0200
commit48ac8b026ffdf8b3823c573e5693dcf1765383e2 (patch)
tree832576fddbcdef9810b206f1ee86469702497806 /collections/users.js
parent9faaf07e0257f622abcaa365408fa836a1cbdea8 (diff)
downloadwekan-48ac8b026ffdf8b3823c573e5693dcf1765383e2.tar.gz
wekan-48ac8b026ffdf8b3823c573e5693dcf1765383e2.tar.bz2
wekan-48ac8b026ffdf8b3823c573e5693dcf1765383e2.zip
Implement board archive and restoration
Diffstat (limited to 'collections/users.js')
-rw-r--r--collections/users.js2
1 files changed, 1 insertions, 1 deletions
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 || [];