mirror of
https://github.com/vale981/Vulcan
synced 2025-03-06 01:51:40 -05:00
use Meteor.userLoaded()
This commit is contained in:
parent
cf3cb355d1
commit
f515c552dc
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ SimpleRouter = FilteredRouter.extend({
|
|||
// if the user is logged in but their profile isn't filled out enough
|
||||
require_profile: function(page) {
|
||||
var user = Meteor.user();
|
||||
if (user && ! user.loading && ! userProfileComplete(user)){
|
||||
if (user && Meteor.userLoaded() && ! userProfileComplete(user)){
|
||||
Session.set('selectedUserId', user._id);
|
||||
return 'user_email';
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue