publications.js
433 Bytes
import { Meteor } from 'meteor/meteor';
import { check, Match } from 'meteor/check'
import { Users } from '/imports/collections/users/index';
import { Orgs } from '/imports/collections/orgs/index';
Meteor.publish('users.current', function() {
return Users.find({
_id: this.userId,
}, {
fields: Users.privateFields,
});
});