Blame view

imports/collections/users/publications.js 433 Bytes
39d8f536d   Deepak   some more cleamup
1
2
3
4
5
6
7
8
9
10
11
12
13
14
  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,
    });
  });