Replies: 1 comment
-
I don't see anything incorrect here. We have this older blog post about it https://payloadcms.com/posts/blog/build-your-own-rbac which appears pretty similar other than roles are Is any part of your access control working? If the admin UI is working but not other API requests, it could be that you're not sending through the authorization token so the user isn't being recognized. |
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
-
Hi community,
I'm working on setting up access control for my Posts collection in Payload CMS and need some assistance. Here’s what I’m trying to achieve:
But this doesn't seem to work.
Are there any examples or best practices for implementing role-based access control with drafts in Payload CMS?
Note: The helper functions (isContributorOrAbove, isAdmin, anyone) are standard role checks, but I can share them if needed.
I’d really appreciate any insights, suggestions, or examples from the community to help me resolve this issue. Thank you in advance!
Beta Was this translation helpful? Give feedback.
All reactions