diff --git a/hourglass/lib/router.js b/hourglass/lib/router.js index a50ae91..289271f 100644 --- a/hourglass/lib/router.js +++ b/hourglass/lib/router.js @@ -57,7 +57,7 @@ Router.route('/user/:email', { }, action: function() { if(Meteor.users.findOne({'services.google.email': this.params.email}) !== undefined) { - if(this.params.email === Meteor.user().services.google.email) { + if(Meteor.user() && this.params.email === Meteor.user().services.google.email) { this.redirect('/profile'); } else { this.render('user');