publish userfields needed for profile pages
This commit is contained in:
parent
dc1e0c8df8
commit
abdd95477c
@ -120,7 +120,14 @@ Meteor.publish('users', function() {
|
|||||||
return Meteor.users.find({}, {
|
return Meteor.users.find({}, {
|
||||||
// Only return necessary fields
|
// Only return necessary fields
|
||||||
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
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user