We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 62a77e7 commit eacedbaCopy full SHA for eacedba
src/collections/Moments/index.ts
@@ -2,6 +2,7 @@ import type { CollectionConfig } from 'payload'
2
3
import { anyone } from '../../access/anyone'
4
import { authenticated } from '../../access/authenticated'
5
+import { authenticatedOrPublished } from '@/access/authenticatedOrPublished'
6
import { slugField } from 'payload'
7
import { generatePreviewPath } from '../../utilities/generatePreviewPath'
8
@@ -10,7 +11,7 @@ export const Moments: CollectionConfig = {
10
11
access: {
12
create: authenticated,
13
delete: authenticated,
- read: anyone,
14
+ read: authenticatedOrPublished,
15
update: authenticated,
16
},
17
defaultSort: '-publishedAt',
0 commit comments