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