Show only boards in which the user participate in the home page grid

Fixes #218
This commit is contained in:
Maxime Quandalle 2015-08-27 01:26:21 +02:00
parent dd08485b36
commit bd331122b8
2 changed files with 5 additions and 1 deletions

View file

@ -4,7 +4,10 @@ BlazeComponent.extendComponent({
},
boards: function() {
return Boards.find({ archived: false }, {
return Boards.find({
archived: false,
'members.userId': Meteor.userId()
}, {
sort: ['title']
});
},