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: [