From cfba46df3dcab7e08249c9829cf9b97d47d07aa8 Mon Sep 17 00:00:00 2001 From: Yaman Date: Sun, 11 Jan 2015 13:50:36 -0500 Subject: [PATCH] fixed router bug --- chromebook-checkout-meteor/client/router.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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