wekan/server/publications/users.js
Maxime Quandalle a13fad749e Change the board import layout from a popup to a full page
This commit also removes the “import a single Trello card” as we couldn’t figure
out some reasonable use case.

We also create a new publication on the server to provide the minimal user
profile informations required to display an avatar.
2016-01-31 20:03:12 +01:00

11 lines
221 B
JavaScript

Meteor.publish('user-miniprofile', function(userId) {
check(userId, String);
return Users.find(userId, {
fields: {
'username': 1,
'profile.fullname': 1,
'profile.avatarUrl': 1,
},
});
});