From 0b1708d9fc2da9b1a1c0855fdaa6d41b44575da8 Mon Sep 17 00:00:00 2001 From: Nick Martin Date: Thu, 14 Jun 2012 21:40:30 -0700 Subject: [PATCH] Send all of user except services and private (instead of only name and email) --- packages/accounts/accounts_server.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/accounts/accounts_server.js b/packages/accounts/accounts_server.js index 8f2c0e83d1..9da172d680 100644 --- a/packages/accounts/accounts_server.js +++ b/packages/accounts/accounts_server.js @@ -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; });