summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorXavier Priour <xavier.priour@bubblyware.com>2015-11-13 12:35:41 +0100
committerXavier Priour <xavier.priour@bubblyware.com>2015-11-13 12:35:41 +0100
commit3dc70b3ea4d49bccb10d4f2b3e317c794da91e37 (patch)
tree35fdfa345a68017bf03e64689a92a8dfea705acc /models
parent658ef5ebe112edd55eb8cf160e02a46eb2e13afd (diff)
downloadwekan-3dc70b3ea4d49bccb10d4f2b3e317c794da91e37.tar.gz
wekan-3dc70b3ea4d49bccb10d4f2b3e317c794da91e37.tar.bz2
wekan-3dc70b3ea4d49bccb10d4f2b3e317c794da91e37.zip
Import members: UI flow ok
Diffstat (limited to 'models')
-rw-r--r--models/users.js4
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 });