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

@ -24,4 +24,11 @@ Router.route('/admin', function() {
} else {
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 }}
</div>
</div>
</div>
</template>