feat: redesign CMS and unify German admin UI

This commit is contained in:
2026-09-17 16:51:24 +02:00
parent a2b3e99174
commit 7ec0c51ff5
129 changed files with 952 additions and 550 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
import type { Access, FieldAccess } from "payload";
/**
* Only the "users" auth collection (Anna/admins) may perform the action —
* Only the "users" auth collection (Anna/admins) may perform the action -
* and only with the "admin" role, so adding further roles to Users later
* only means extending this one check. Site visitors authenticate against
* the separate "customers" collection (see collections/Customers.ts) and
@@ -15,7 +15,7 @@ export const isAdminFieldLevel: FieldAccess = ({ req: { user } }) =>
/**
* Admins always see Analytics; any other "users" account additionally needs
* its own `canViewAnalytics` flag (see collections/Users.ts) — this is the
* its own `canViewAnalytics` flag (see collections/Users.ts) - this is the
* granular permission the single "admin" role doesn't otherwise provide.
* Used both as a Payload Access/FieldAccess function and called directly
* (with a minimal `{ req: { user } }` shape) from the custom admin nav-link