added teacher route, and page
This commit is contained in:
parent
76993822e1
commit
970ada3897
@ -24,4 +24,11 @@ Router.route('/admin', function() {
|
|||||||
} else {
|
} else {
|
||||||
this.redirect('/checkout');
|
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 }}
|
{{> carts }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</template>
|
</template>
|
||||||
Loading…
x
Reference in New Issue
Block a user