Skip to content

Commit

Permalink
add route guard for classes detail view
Browse files Browse the repository at this point in the history
  • Loading branch information
raymondhtet committed Sep 24, 2024
1 parent 5bef3a1 commit 7274fa4
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 @@ -52,6 +52,8 @@ export const RouteGuard = {
return this.accessibleBy(['admin', 'tutor']);
case '/classes':
return this.accessibleBy(['admin', 'tutor']);
case '/classes/details':
return this.accessibleBy(['admin', 'tutor']);
case '/genai':
return this.accessibleBy(['admin', 'tutor']);
default:
Expand Down

0 comments on commit 7274fa4

Please sign in to comment.