소스 검색

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:
 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
 # v0.54 2017-11-02 Wekan release
 
 

+ 1 - 1
models/users.js

@@ -159,7 +159,7 @@ if (Meteor.isClient) {
 
 
 Users.helpers({
 Users.helpers({
   boards() {
   boards() {
-    return Boards.find({userId: this._id});
+    return Boards.find({ 'members.userId': this._id });
   },
   },
 
 
   starredBoards() {
   starredBoards() {