mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-07-23 12:31:54 +00:00
fix: Middleware redirection to /profile (#8305)
This commit is contained in:
+1
-1
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user