afterModel() {
    if (this.can.cannot('read index')) {
      this.router.transitionTo(
        'repositories.show.prefixes',
        this.modelFor('repositories/show')