fixed router bug

This commit is contained in:
Yaman 2015-01-11 13:50:36 -05:00
parent 965d889b26
commit cfba46df3d

View File

@ -22,7 +22,7 @@ Router.route('/admin', function() {
if (Roles.userIsInRole(Meteor.userId(), ['admin'])) { if (Roles.userIsInRole(Meteor.userId(), ['admin'])) {
this.render("admin"); this.render("admin");
} else { } else {
this.redirect('/checkout'); this.redirect('/login');
} }
}); });
@ -30,6 +30,6 @@ Router.route('/teacher', function() {
if (Roles.userIsInRole(Meteor.userId(), ['admin', 'teacher'])) { if (Roles.userIsInRole(Meteor.userId(), ['admin', 'teacher'])) {
this.render("teacher"); this.render("teacher");
} else { } else {
this.redirect('/checkout'); this.redirect('/login');
} }
}); });