do not allow main page until school is filled

This commit is contained in:
Yaman Qalieh 2016-09-25 11:59:36 -04:00
parent 75a82e2202
commit daa985097b

View File

@ -1,6 +1,6 @@
Router.route('/', {
waitOn: function() {
if (!Meteor.userId()) {
if (!Meteor.userId() || !Meteor.user().profile.school) {
this.redirect('/login');
} else {
return [