added teacher route, and page

This commit is contained in:
Kenneth Jao 2015-01-11 13:39:10 -05:00
parent 76993822e1
commit 970ada3897
2 changed files with 7 additions and 1 deletions

View File

@ -25,3 +25,10 @@ Router.route('/admin', function() {
this.redirect('/checkout'); this.redirect('/checkout');
} }
}); });
Router.route('/teacher', function() {
if (Meteor.user().roles[0]==='teacher') {
this.render("teacher");
} else {
this.redirect('/checkout');
}
});

View File

@ -13,5 +13,4 @@
{{> carts }} {{> carts }}
</div> </div>
</div> </div>
</div>
</template> </template>