Skip to content

Commit

Permalink
Fix for authenticated route from https://github.com/Vestorly/torii/pu…
Browse files Browse the repository at this point in the history
  • Loading branch information
kategengler committed Jan 31, 2019
1 parent eb9dd21 commit 212e6a5
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion addon/routing/authenticated-route-mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,14 @@ export default Mixin.create({
}
},
accessDenied(transition) {
transition.send('accessDenied', transition);
if (transition.promise) {
transition.promise.then(accessDenied);
} else {
accessDenied(transition);
}
}
});

function accessDenied(transition) {
transition.send('accessDenied', transition);
}

0 comments on commit 212e6a5

Please sign in to comment.