mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-16 01:05:40 +00:00
15 lines
417 B
TypeScript
15 lines
417 B
TypeScript
import { createFileRoute, redirect } from "@tanstack/react-router";
|
|
|
|
import { AdminLayout } from "@app/layouts/AdminLayout";
|
|
|
|
export const Route = createFileRoute("/_authenticate/_inject-org-details/admin/_admin-layout")({
|
|
component: AdminLayout,
|
|
beforeLoad: ({ context }) => {
|
|
if (!context.user.superAdmin) {
|
|
throw redirect({
|
|
to: "/organization/secret-manager/overview"
|
|
});
|
|
}
|
|
}
|
|
});
|