User permission error handling

This commit is contained in:
Matthew Dillon 2015-11-17 09:33:44 -07:00
parent 9fc81bcc87
commit 40ac4b30af
2 changed files with 4 additions and 0 deletions

View file

@ -11,6 +11,8 @@ export default Route.extend({
if (!user.get('isAdmin')) {
this.transitionTo('protected.index');
}
}, () => {
this.transitionTo('protected.index');
});
},