-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Admin Panel Route Guard #350
Conversation
Wait with merging until demo is done |
It can be merged now, after being reviewed |
@@ -12,6 +12,7 @@ import VerifyView from '@/views/authentication/VerifyView.vue'; | |||
import { type RouteRecordRaw, createWebHistory, createRouter } from 'vue-router'; | |||
import { AuthenticationGuard } from '@/router/guards/authentication.guard.ts'; | |||
import { LogoutGuard } from '@/router/guards/logout.guard.ts'; | |||
import { AdminGuard } from '@/router/guards/admin.guard.ts'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
from where is this file this is not in the repo
you can also set the pr to a normal pr instead of a draft to notify this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is better.
A route guard for the admin panel would be quite handy to prevent non-admins from reaching it in the first place