userLoaded -> userId

This commit is contained in:
Sacha Greif 2012-11-21 13:32:58 +09:00
parent 91c7da215c
commit 92c57121ed

View file

@ -196,7 +196,7 @@
requireProfile: function(page) {
var user = Meteor.user();
// XXX: this is out of date
if (user && Meteor.userLoaded() && ! userProfileComplete(user)){
if (user && Meteor.userId() && ! userProfileComplete(user)){
Session.set('selectedUserId', user._id);
return 'user_email';
} else {