router syntax error
This commit is contained in:
parent
9c63a46409
commit
cf09cf33bd
@ -46,7 +46,7 @@ Router.route('/profile', {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
Router.route('/admin', function() {
|
Router.route('/admin', {
|
||||||
waitOn: function() {
|
waitOn: function() {
|
||||||
if (Roles.userIsInRole(Meteor.userId(), ['admin', 'superadmin'])) {
|
if (Roles.userIsInRole(Meteor.userId(), ['admin', 'superadmin'])) {
|
||||||
return [
|
return [
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user