Skip to content

Commit

Permalink
add dashboard to route
Browse files Browse the repository at this point in the history
  • Loading branch information
linxiaoxin committed Oct 1, 2024
1 parent 813e44c commit d739582
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/RouteGuard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ export const RouteGuard = {
return this.accessibleBy(['admin', 'tutor']);
case '/students/invitation/accept':
return this.accessibleBy(['student', 'tutor']);
case '/dashboard':
return this.accessibleBy(['student', 'tutor']);
default:
return false;
}
Expand Down

0 comments on commit d739582

Please sign in to comment.