Skip to content

Instantly share code, notes, and snippets.

@typeoneerror
Created May 30, 2015 20:08
Show Gist options
  • Select an option

  • Save typeoneerror/38aa7cd148f9686ecc78 to your computer and use it in GitHub Desktop.

Select an option

Save typeoneerror/38aa7cd148f9686ecc78 to your computer and use it in GitHub Desktop.
import AuthenticatedRoute from 'doki/routes/authenticated';
export default AuthenticatedRoute.extend({
requireDean: false,
activate() {
this._super();
this.checkAccess();
},
afterModel() {
this._super();
this.checkAccess();
},
resetController() {
this._super();
this.checkAccess();
},
checkAccess() {
console.log('checkAccess');
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment