Make Events and EventTypes collections world readable
This commit is contained in:
@@ -2,6 +2,9 @@ import { CollectionConfig } from 'payload/types';
|
||||
|
||||
const EventTypes: CollectionConfig = {
|
||||
slug: 'event-types',
|
||||
access: {
|
||||
read: () => true,
|
||||
},
|
||||
admin: {
|
||||
useAsTitle: 'name'
|
||||
},
|
||||
|
||||
@@ -5,6 +5,9 @@ const Events: CollectionConfig = {
|
||||
admin: {
|
||||
useAsTitle: 'name'
|
||||
},
|
||||
access: {
|
||||
read: () => true,
|
||||
},
|
||||
timestamps: false,
|
||||
hooks: {
|
||||
afterRead: [
|
||||
|
||||
Reference in New Issue
Block a user