publish userfields needed for profile pages

This commit is contained in:
Yaman Qalieh 2016-09-04 15:47:45 -04:00
parent dc1e0c8df8
commit abdd95477c

View File

@ -120,7 +120,14 @@ Meteor.publish('users', function() {
return Meteor.users.find({}, {
// Only return necessary fields
fields: {
'services.google.email': 1
'services.google.email': 1,
'profile.avatar': 1,
'profile.banner': 1,
'profile.grade': 1,
'profile.classes': 1,
'profile.description': 1,
'profile.name': 1,
'profile.school': 1
}
});
}