Skip to content

feat: update middleware and layout for admin route handling #276

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

Merged
merged 1 commit into from
May 18, 2025
Merged

Conversation

goldflag
Copy link
Collaborator

  • Removed "settings" from excludedRoutes in middleware.
  • Added "admin" to excludedRoutes in middleware and layout checks.
  • Integrated useStopImpersonation hook in RootLayout for global impersonation control.
  • Updated TopBar to conditionally display Admin link for users with admin role.

- Removed "settings" from excludedRoutes in middleware.
- Added "admin" to excludedRoutes in middleware and layout checks.
- Integrated useStopImpersonation hook in RootLayout for global impersonation control.
- Updated TopBar to conditionally display Admin link for users with admin role.
Copy link

vercel bot commented May 18, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
rybbit 🔄 Building (Inspect) Visit Preview 💬 Add feedback May 18, 2025 4:06am

@goldflag goldflag merged commit d46b931 into master May 18, 2025
5 of 6 checks passed
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.

1 participant