This commit is contained in:
Kenneth Jao 2017-01-18 01:11:25 -05:00
commit 6b10de2d89

View File

@ -1,8 +1,5 @@
function completeProfile() { function completeProfile() {
if (Meteor.user().profile.school && if (Meteor.user().profile.complete) {
Meteor.user().profile.grade &&
Meteor.user().profile.classes.length > 1 &&
Meteor.user().profile.complete) {
return true; return true;
} else { } else {
return false; return false;
@ -12,8 +9,6 @@ function completeProfile() {
Router.route('/', { Router.route('/', {
waitOn: function() { waitOn: function() {
if (!Meteor.userId() || !completeProfile()) { if (!Meteor.userId() || !completeProfile()) {
console.log("hello")
console.log(completeProfile());
this.redirect('/login'); this.redirect('/login');
} else { } else {
return [ return [