fix: Middleware redirection to /profile (#8305)

This commit is contained in:
Alejandro Bailo
2025-07-17 11:49:24 +02:00
committed by GitHub
parent ee974a6316
commit 0f12fb92ed
+1 -1
View File
@@ -27,7 +27,7 @@ export default auth((req: NextRequest & { auth: any }) => {
const permissions = user.permissions;
if (pathname.startsWith("/billing") && !permissions.manage_billing) {
return NextResponse.redirect(new URL("/", req.url));
return NextResponse.redirect(new URL("/profile", req.url));
}
}