added teacher route, and page
This commit is contained in:
parent
76993822e1
commit
970ada3897
@ -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');
|
||||
}
|
||||
});
|
||||
@ -13,5 +13,4 @@
|
||||
{{> carts }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
Loading…
x
Reference in New Issue
Block a user