fix: access to copies for hold

This commit is contained in:
Yehoshua Sandler 2025-05-05 10:27:57 -05:00
parent e264e88b39
commit 2b4ed75d72

View File

@ -1,3 +1,4 @@
import { authenticated } from "@/access/authenticated";
import { Copy } from "@/payload-types"; import { Copy } from "@/payload-types";
import { CollectionBeforeValidateHook, CollectionConfig } from "payload"; import { CollectionBeforeValidateHook, CollectionConfig } from "payload";
@ -38,6 +39,12 @@ export const Copies: CollectionConfig = {
limits: [10, 20], limits: [10, 20],
}, },
}, },
access: {
read: () => true,
update: authenticated,
create: authenticated,
delete: authenticated,
},
fields: [ fields: [
{ {
name: 'label', name: 'label',