diff --git a/src/app/(protected)/dashboard/usermanagement/components/ProtectedLayout.tsx b/src/app/(protected)/dashboard/usermanagement/components/ProtectedLayout.tsx index b3843f1..1ca9cf8 100644 --- a/src/app/(protected)/dashboard/usermanagement/components/ProtectedLayout.tsx +++ b/src/app/(protected)/dashboard/usermanagement/components/ProtectedLayout.tsx @@ -24,7 +24,7 @@ export default async function ProtectedLayout({ }); if (!user || !allowedRoles.includes(user.role)) { - redirect("/sign-in"); + redirect("/unauthorized"); } return
{children}
;