Skip to content

Commit

Permalink
I think this resolves the access errors
Browse files Browse the repository at this point in the history
  • Loading branch information
DrumsnChocolate committed Nov 3, 2024
1 parent 65778db commit 60fcdb5
Show file tree
Hide file tree
Showing 9 changed files with 36 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/routes/books.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,8 @@ export default class BooksRoute extends AuthenticatedRoute {
queryParams = {};

breadcrumb = { title: 'Boeken' };

canAccess() {
return this.abilities.can('show books');

Check warning on line 9 in app/routes/books.js

View check run for this annotation

Codecov / codecov/patch

app/routes/books.js#L9

Added line #L9 was not covered by tests
}
}
4 changes: 4 additions & 0 deletions app/routes/debit/collections.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,8 @@ export default class CollectionsRoute extends AuthenticatedRoute {
queryParams = {};

breadcrumb = { title: "Incasso's" };

canAccess() {
return this.abilities.can('show debit/collections');

Check warning on line 9 in app/routes/debit/collections.js

View check run for this annotation

Codecov / codecov/patch

app/routes/debit/collections.js#L9

Added line #L9 was not covered by tests
}
}
4 changes: 4 additions & 0 deletions app/routes/debit/mandates.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,8 @@ export default class MandatesRoute extends AuthenticatedRoute {
queryParams = {};

breadcrumb = { title: 'Incasso mandaten' };

canAccess() {
return this.abilities.can('show debit/mandates');

Check warning on line 9 in app/routes/debit/mandates.js

View check run for this annotation

Codecov / codecov/patch

app/routes/debit/mandates.js#L9

Added line #L9 was not covered by tests
}
}
4 changes: 4 additions & 0 deletions app/routes/debit/transactions.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,8 @@ export default class TransactionsRoute extends AuthenticatedRoute {
queryParams = {};

breadcrumb = { title: 'Transacties' };

canAccess() {
return this.abilities.can('show debit/transactions');

Check warning on line 9 in app/routes/debit/transactions.js

View check run for this annotation

Codecov / codecov/patch

app/routes/debit/transactions.js#L9

Added line #L9 was not covered by tests
}
}
4 changes: 4 additions & 0 deletions app/routes/forum.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,8 @@ export default class ForumRoute extends AuthenticatedRoute {
queryParams = {};

breadcrumb = { title: 'Forum' };

canAccess() {
return this.abilities.can('show forum/categories');

Check warning on line 9 in app/routes/forum.js

View check run for this annotation

Codecov / codecov/patch

app/routes/forum.js#L9

Added line #L9 was not covered by tests
}
}
4 changes: 4 additions & 0 deletions app/routes/forum/categories/category/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,8 @@ export default class CategoryIndexRoute extends AuthenticatedRoute {
beforeModel() {
this.transitionTo('forum.categories.category.threads');
}

canAccess() {
return this.abilities.can('show forum/categories');

Check warning on line 9 in app/routes/forum/categories/category/index.js

View check run for this annotation

Codecov / codecov/patch

app/routes/forum/categories/category/index.js#L9

Added line #L9 was not covered by tests
}
}
4 changes: 4 additions & 0 deletions app/routes/forum/categories/category/threads/thread/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,8 @@ export default class ThreadIndexRoute extends AuthenticatedRoute {
beforeModel() {
this.transitionTo('forum.categories.category.threads.thread.posts');
}

canAccess() {
return this.abilities.can('show forum/threads');

Check warning on line 9 in app/routes/forum/categories/category/threads/thread/index.js

View check run for this annotation

Codecov / codecov/patch

app/routes/forum/categories/category/threads/thread/index.js#L9

Added line #L9 was not covered by tests
}
}
4 changes: 4 additions & 0 deletions app/routes/groups.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,8 @@ export default class GroupsRoute extends AuthenticatedRoute {
queryParams = {};

breadcrumb = { title: 'Groepen' };

canAccess() {
return this.abilities.can('show groups');

Check warning on line 9 in app/routes/groups.js

View check run for this annotation

Codecov / codecov/patch

app/routes/groups.js#L9

Added line #L9 was not covered by tests
}
}
4 changes: 4 additions & 0 deletions app/routes/polls.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,8 @@ export default class PollsRoute extends AuthenticatedRoute {
queryParams = {};

breadcrumb = { title: 'Polls' };

canAccess() {
return this.abilities.can('show polls');

Check warning on line 9 in app/routes/polls.js

View check run for this annotation

Codecov / codecov/patch

app/routes/polls.js#L9

Added line #L9 was not covered by tests
}
}

0 comments on commit 60fcdb5

Please sign in to comment.