diff --git a/chromebook-checkout-meteor/client/router.js b/chromebook-checkout-meteor/client/router.js index d107e35..d5a64aa 100644 --- a/chromebook-checkout-meteor/client/router.js +++ b/chromebook-checkout-meteor/client/router.js @@ -22,7 +22,7 @@ Router.route('/admin', function() { if (Roles.userIsInRole(Meteor.userId(), ['admin'])) { this.render("admin"); } else { - this.redirect('/checkout'); + this.redirect('/login'); } }); @@ -30,6 +30,6 @@ Router.route('/teacher', function() { if (Roles.userIsInRole(Meteor.userId(), ['admin', 'teacher'])) { this.render("teacher"); } else { - this.redirect('/checkout'); + this.redirect('/login'); } }); \ No newline at end of file