Skip to content
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

Merged
merged 2 commits into from
Apr 20, 2024
Merged

feat: Admin Panel Route Guard #350

merged 2 commits into from
Apr 20, 2024

Conversation

bsilkyn
Copy link
Contributor

@bsilkyn bsilkyn commented Apr 19, 2024

A route guard for the admin panel would be quite handy to prevent non-admins from reaching it in the first place

@bsilkyn
Copy link
Contributor Author

bsilkyn commented Apr 19, 2024

Wait with merging until demo is done

@bsilkyn bsilkyn changed the title Admin Panel Route Guard feat: Admin Panel Route Guard Apr 19, 2024
@bsilkyn
Copy link
Contributor Author

bsilkyn commented Apr 19, 2024

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';
Copy link
Contributor

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

@tyboro2002
Copy link
Contributor

It can be merged now, after being reviewed

you can also set the pr to a normal pr instead of a draft to notify this.

@bsilkyn bsilkyn marked this pull request as ready for review April 20, 2024 07:11
@bsilkyn bsilkyn added this to the Final milestone milestone Apr 20, 2024
Copy link
Contributor

@francisvaut francisvaut left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is better.

@francisvaut francisvaut merged commit c20671c into development Apr 20, 2024
3 checks passed
@francisvaut francisvaut deleted the admin-guard branch April 20, 2024 09:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants