I’m building an example app in Meteor 1.2.1 and previewing it in Chrome 47.
I am trying to publish user data in a secure way as outlined in this post by Colby Cheeze.
Meteor.publish("userData", function() {
return Meteor.users.find(
{},
{fields: {"profile": 1}}
);
});
However, when I run the following in the browser console,
Meteor.users.find().fetch()
I can see the “emails” field for each user, even though I did not set it to “1”.
What’s the issue here?