feat: redesign CMS and unify German admin UI
This commit is contained in:
@@ -7,7 +7,7 @@ import type { Event, Offer, Post } from "@/payload-types";
|
||||
//
|
||||
// IMPORTANT: Payload's Local API defaults `overrideAccess` to `true`, which
|
||||
// SKIPS each collection's `access.read` check entirely (see
|
||||
// node_modules/payload/dist/collections/operations/find.js) — it does not
|
||||
// node_modules/payload/dist/collections/operations/find.js) - it does not
|
||||
// automatically hide drafts. Every fetcher that feeds a *public* page must
|
||||
// therefore pass `overrideAccess: false` so the collection's own
|
||||
// `publishedOrAdmin` access rule actually filters out unpublished documents.
|
||||
@@ -83,7 +83,7 @@ export const getEventBySlug = cache(async (slug: string): Promise<Event | null>
|
||||
* Unlike `getEventBySlug`, this intentionally does NOT filter by publish
|
||||
* status. Confirmed private bookings create an unpublished/private linked
|
||||
* Event (see collections/BookingRequests.ts) that must still be reachable
|
||||
* for the one customer who received its join link + password — "unlisted",
|
||||
* for the one customer who received its join link + password - "unlisted",
|
||||
* not "hidden". Only used by the join/beitreten flow, never for listings.
|
||||
*/
|
||||
export const getEventForJoin = cache(async (slug: string): Promise<Event | null> => {
|
||||
|
||||
Reference in New Issue
Block a user