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');
|
||||
} else {
|
||||
this.render('user');
|
||||
}
|
||||
}
|
||||
} else {
|
||||
this.render("NotFound");
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user