diff options
author | Xavier Priour <xavier.priour@bubblyware.com> | 2015-11-13 12:35:41 +0100 |
---|---|---|
committer | Xavier Priour <xavier.priour@bubblyware.com> | 2015-11-13 12:35:41 +0100 |
commit | 3dc70b3ea4d49bccb10d4f2b3e317c794da91e37 (patch) | |
tree | 35fdfa345a68017bf03e64689a92a8dfea705acc /models | |
parent | 658ef5ebe112edd55eb8cf160e02a46eb2e13afd (diff) | |
download | wekan-3dc70b3ea4d49bccb10d4f2b3e317c794da91e37.tar.gz wekan-3dc70b3ea4d49bccb10d4f2b3e317c794da91e37.tar.bz2 wekan-3dc70b3ea4d49bccb10d4f2b3e317c794da91e37.zip |
Import members: UI flow ok
Diffstat (limited to 'models')
-rw-r--r-- | models/users.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/models/users.js b/models/users.js index b35104ec..60cab56d 100644 --- a/models/users.js +++ b/models/users.js @@ -2,12 +2,14 @@ Users = Meteor.users; // Search a user in the complete server database by its name or username. This // is used for instance to add a new user to a board. -const searchInFields = ['username', 'profile.name']; +const searchInFields = ['username', 'profile.fullname']; Users.initEasySearch(searchInFields, { use: 'mongo-db', returnFields: [...searchInFields, 'profile.avatarUrl'], }); + + Users.helpers({ boards() { return Boards.find({ userId: this._id }); |