fix: access to copies for hold
This commit is contained in:
parent
e264e88b39
commit
2b4ed75d72
@ -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',
|
||||
|
Loading…
x
Reference in New Issue
Block a user