fixed router bug
This commit is contained in:
parent
965d889b26
commit
cfba46df3d
@ -22,7 +22,7 @@ Router.route('/admin', function() {
|
|||||||
if (Roles.userIsInRole(Meteor.userId(), ['admin'])) {
|
if (Roles.userIsInRole(Meteor.userId(), ['admin'])) {
|
||||||
this.render("admin");
|
this.render("admin");
|
||||||
} else {
|
} else {
|
||||||
this.redirect('/checkout');
|
this.redirect('/login');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -30,6 +30,6 @@ Router.route('/teacher', function() {
|
|||||||
if (Roles.userIsInRole(Meteor.userId(), ['admin', 'teacher'])) {
|
if (Roles.userIsInRole(Meteor.userId(), ['admin', 'teacher'])) {
|
||||||
this.render("teacher");
|
this.render("teacher");
|
||||||
} else {
|
} else {
|
||||||
this.redirect('/checkout');
|
this.redirect('/login');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
Loading…
x
Reference in New Issue
Block a user