summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2017-11-19 09:50:03 +0200
committerLauri Ojansivu <x@xet7.org>2017-11-19 09:50:03 +0200
commit9353d785ea86b37cc83c88fec1b5b0a29cd9a888 (patch)
treea073a139018ee53f8031fba89fb2a6684dd46693
parent0ea96fca3f9c4ca876b1f11969958b6fb0417420 (diff)
downloadwekan-9353d785ea86b37cc83c88fec1b5b0a29cd9a888.tar.gz
wekan-9353d785ea86b37cc83c88fec1b5b0a29cd9a888.tar.bz2
wekan-9353d785ea86b37cc83c88fec1b5b0a29cd9a888.zip
Fix: Helper to list boards for user. Thanks to milesibastos ! Closes #1326
-rw-r--r--CHANGELOG.md9
-rw-r--r--models/users.js2
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() {