mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 15:30:13 +01:00
Show only boards in which the user participate in the home page grid
Fixes #218
This commit is contained in:
parent
dd08485b36
commit
bd331122b8
2 changed files with 5 additions and 1 deletions
|
|
@ -4,7 +4,10 @@ BlazeComponent.extendComponent({
|
||||||
},
|
},
|
||||||
|
|
||||||
boards: function() {
|
boards: function() {
|
||||||
return Boards.find({ archived: false }, {
|
return Boards.find({
|
||||||
|
archived: false,
|
||||||
|
'members.userId': Meteor.userId()
|
||||||
|
}, {
|
||||||
sort: ['title']
|
sort: ['title']
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,7 @@ Meteor.publish('boards', function() {
|
||||||
slug: 1,
|
slug: 1,
|
||||||
title: 1,
|
title: 1,
|
||||||
color: 1,
|
color: 1,
|
||||||
|
members: 1,
|
||||||
permission: 1
|
permission: 1
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue