Merge branch 'master' of https://github.com/ksjdragon/hourglass
This commit is contained in:
commit
6b10de2d89
@ -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 [
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user