feat: redesign CMS and unify German admin UI
This commit is contained in:
+2
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user