From 2b4ed75d72cb3f00fd9243f504971c1cfc4454dd Mon Sep 17 00:00:00 2001 From: ysandler Date: Mon, 5 May 2025 10:27:57 -0500 Subject: [PATCH] fix: access to copies for hold --- src/collections/Copies/Copies.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/collections/Copies/Copies.ts b/src/collections/Copies/Copies.ts index 5abae7b..bc4e294 100644 --- a/src/collections/Copies/Copies.ts +++ b/src/collections/Copies/Copies.ts @@ -1,3 +1,4 @@ +import { authenticated } from "@/access/authenticated"; import { Copy } from "@/payload-types"; import { CollectionBeforeValidateHook, CollectionConfig } from "payload"; @@ -38,6 +39,12 @@ export const Copies: CollectionConfig = { limits: [10, 20], }, }, + access: { + read: () => true, + update: authenticated, + create: authenticated, + delete: authenticated, + }, fields: [ { name: 'label',