From 9353d785ea86b37cc83c88fec1b5b0a29cd9a888 Mon Sep 17 00:00:00 2001 From: Lauri Ojansivu Date: Sun, 19 Nov 2017 09:50:03 +0200 Subject: Fix: Helper to list boards for user. Thanks to milesibastos ! Closes #1326 --- CHANGELOG.md | 9 +++++---- models/users.js | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 43171dd0..1f695d61 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,11 +7,12 @@ This release adds the following new features: and fixes the following bugs: -* [Fix: Emoji detection breaks MAC addresses](https://github.com/wekan/wekan/issues/1248); -* [Fix: Codeblocks should not be scanned for emoji](https://github.com/wekan/wekan/issues/643); -* [Fix: Whitespace trimming breaks Markdown code block indentation](https://github.com/wekan/wekan/issues/1288). +* [Emoji detection breaks MAC addresses](https://github.com/wekan/wekan/issues/1248); +* [Codeblocks should not be scanned for emoji](https://github.com/wekan/wekan/issues/643); +* [Whitespace trimming breaks Markdown code block indentation](https://github.com/wekan/wekan/issues/1288): +* [Helper to list boards for user](https://github.com/wekan/wekan/pull/1327). -Thanks to Github users brooksbecton, thuanpq and xet7 for their contributions. +Thanks to Github users brooksbecton, milesibastos, thuanpq and xet7 for their contributions. # v0.54 2017-11-02 Wekan release diff --git a/models/users.js b/models/users.js index 9a0a61a4..85f4baf2 100644 --- a/models/users.js +++ b/models/users.js @@ -159,7 +159,7 @@ if (Meteor.isClient) { Users.helpers({ boards() { - return Boards.find({userId: this._id}); + return Boards.find({ 'members.userId': this._id }); }, starredBoards() { -- cgit v1.2.3-1-g7c22