Merge branch 'master' of https://github.com/ksjdragon/hourglass
This commit is contained in:
commit
6b10de2d89
@ -1,8 +1,5 @@
|
||||
function completeProfile() {
|
||||
if (Meteor.user().profile.school &&
|
||||
Meteor.user().profile.grade &&
|
||||
Meteor.user().profile.classes.length > 1 &&
|
||||
Meteor.user().profile.complete) {
|
||||
if (Meteor.user().profile.complete) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
@ -12,8 +9,6 @@ function completeProfile() {
|
||||
Router.route('/', {
|
||||
waitOn: function() {
|
||||
if (!Meteor.userId() || !completeProfile()) {
|
||||
console.log("hello")
|
||||
console.log(completeProfile());
|
||||
this.redirect('/login');
|
||||
} else {
|
||||
return [
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user