blob: 4fd98e13d0139019d3d84c7a8e99d445808f7882 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
Meteor.publish('user-miniprofile', function(userId) {
check(userId, String);
return Users.find(userId, {
fields: {
'username': 1,
'profile.fullname': 1,
'profile.avatarUrl': 1,
},
});
});
Meteor.publish('user-admin', function() {
return Meteor.users.find(this.userId, {
fields: {
isAdmin: 1,
},
});
});
|