Access control #2674
Unanswered
yogeshm-jadhav
asked this question in
Q&A
Access control
#2674
Replies: 1 comment
-
The default access control for collections is that a user needs to be authenticated to create, read, update or delete. You can provide your own access function and simply return true in any collections that you want to be publicly readable. import { CollectionConfig } from 'payload/types';
const Posts: CollectionConfig = {
slug: 'posts',
access: {
read: () => true,
},
fields: [ /*...*/]
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When I tried to access my website with different browser then it is not working.
or
How I can access collections or data without passing any credentials in my ReactJS website.
Beta Was this translation helpful? Give feedback.
All reactions