refactor: move unified Person+User form to /people/new, admin-only

This commit is contained in:
2026-06-17 08:51:23 +02:00
parent 1f5a849bf5
commit 4f370eee70
12 changed files with 333 additions and 49 deletions
+13
View File
@@ -0,0 +1,13 @@
import type { ReactNode } from "react"
import { requireRole } from "@/services/auth.service"
export default async function PeopleLayout({
children,
}: {
children: ReactNode
}) {
await requireRole("ADMIN")
return children
}