浏览代码

Fix: Helper to list boards for user. Thanks to milesibastos ! Closes #1326

Lauri Ojansivu 7 年之前
父节点
当前提交
9353d785ea
共有 2 个文件被更改,包括 6 次插入5 次删除
  1. 5 4
      CHANGELOG.md
  2. 1 1
      models/users.js

+ 5 - 4
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
 

+ 1 - 1
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() {