Replies: 1 comment 2 replies
-
For the admin users to only see their own orders you will need to add a I don't know if you're using graphql or REST but the fetch url might look like this, though could be different based on the name of your relationship field referencing the user.
Payload's API will merge your orders collection read access control written into the config with the incoming I hope that helps! |
Beta Was this translation helpful? Give feedback.
2 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.
-
I use Payload for Auth for frontend. I have a orders collection. But if a admin has access to all records, it seems to return all records if they are also a customer in the front end.
How do i setup RBAC in a way that a admin can also be a user on the front end and only see records related to them but when they log into admin, they should be able to see everything.
Beta Was this translation helpful? Give feedback.
All reactions