mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Send all of user except services and private (instead of only name and email)
This commit is contained in:
@@ -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;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user