From 4b4c1d5a1d24c57806154938e7325aefcb814640 Mon Sep 17 00:00:00 2001 From: matt Date: Sun, 24 Jul 2022 21:52:16 +0000 Subject: [PATCH] Make Events and EventTypes collections world readable --- src/collections/EventTypes.ts | 3 +++ src/collections/Events.ts | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/collections/EventTypes.ts b/src/collections/EventTypes.ts index 5441456..286df34 100644 --- a/src/collections/EventTypes.ts +++ b/src/collections/EventTypes.ts @@ -2,6 +2,9 @@ import { CollectionConfig } from 'payload/types'; const EventTypes: CollectionConfig = { slug: 'event-types', + access: { + read: () => true, + }, admin: { useAsTitle: 'name' }, diff --git a/src/collections/Events.ts b/src/collections/Events.ts index 4cf539e..9417e97 100644 --- a/src/collections/Events.ts +++ b/src/collections/Events.ts @@ -5,6 +5,9 @@ const Events: CollectionConfig = { admin: { useAsTitle: 'name' }, + access: { + read: () => true, + }, timestamps: false, hooks: { afterRead: [