Send all of user except services and private (instead of only name and email)

This commit is contained in:
Nick Martin
2012-06-14 21:40:30 -07:00
parent 6e0276fb73
commit 0b1708d9fc

View File

@@ -113,7 +113,8 @@
// Publish a few attributes on the current user object
Meteor.publish("currentUser", function() {
if (this.userId())
return Meteor.users.find({_id: this.userId()}, {emails: 1, name: 1});
return Meteor.users.find({_id: this.userId()},
{fields: {services: 0, private: 0}});
else
return null;
});