fix bug of avatar pic not showing on non-admin
This commit is contained in:
parent
f6b6fd5389
commit
2a0aeaa849
@ -61,10 +61,10 @@ Router.route('/user/:email', {
|
|||||||
this.redirect('/profile');
|
this.redirect('/profile');
|
||||||
} else {
|
} else {
|
||||||
this.render('user');
|
this.render('user');
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
this.render("NotFound");
|
this.render("NotFound");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@ -127,6 +127,7 @@ Meteor.publish('users', function() {
|
|||||||
// Only return necessary fields
|
// Only return necessary fields
|
||||||
fields: {
|
fields: {
|
||||||
'services.google.email': 1,
|
'services.google.email': 1,
|
||||||
|
'services.google.picture': 1,
|
||||||
'profile.banner': 1,
|
'profile.banner': 1,
|
||||||
'profile.grade': 1,
|
'profile.grade': 1,
|
||||||
'profile.description': 1,
|
'profile.description': 1,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user