Make Events and EventTypes collections world readable

This commit is contained in:
2022-07-24 21:52:16 +00:00
parent 88ead4ff03
commit 4b4c1d5a1d
2 changed files with 6 additions and 0 deletions

View File

@@ -2,6 +2,9 @@ import { CollectionConfig } from 'payload/types';
const EventTypes: CollectionConfig = {
slug: 'event-types',
access: {
read: () => true,
},
admin: {
useAsTitle: 'name'
},

View File

@@ -5,6 +5,9 @@ const Events: CollectionConfig = {
admin: {
useAsTitle: 'name'
},
access: {
read: () => true,
},
timestamps: false,
hooks: {
afterRead: [