fix bug of avatar pic not showing on non-admin

This commit is contained in:
Yaman Qalieh 2016-09-26 19:05:06 -04:00
parent f6b6fd5389
commit 2a0aeaa849
2 changed files with 3 additions and 2 deletions

View File

@ -61,10 +61,10 @@ Router.route('/user/:email', {
this.redirect('/profile');
} else {
this.render('user');
}
}
} else {
this.render("NotFound");
}
}
}
});

View File

@ -127,6 +127,7 @@ Meteor.publish('users', function() {
// Only return necessary fields
fields: {
'services.google.email': 1,
'services.google.picture': 1,
'profile.banner': 1,
'profile.grade': 1,
'profile.description': 1,