refactor: Standardize user dashboard path to /user/dashboard and refine HeroSection helper text styling.
This commit is contained in:
@@ -43,7 +43,7 @@ export default auth((req) => {
|
||||
if (isLoggedIn) {
|
||||
// Prevent regular users from accessing agent routes
|
||||
if (isAgentRoute && userRole !== "AGENT") {
|
||||
return NextResponse.redirect(new URL("/user/userdashboard", nextUrl.origin));
|
||||
return NextResponse.redirect(new URL("/user/dashboard", nextUrl.origin));
|
||||
}
|
||||
|
||||
// Prevent agents from accessing user routes
|
||||
|
||||
Reference in New Issue
Block a user