Expose Access Control to control UI elements in Custom Web App #2017
mohammedmushtaq3
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The Access Control that payload provides is excellent. And It is only consumed by the Admin UI.
What if i want to consume it on my web app. similar to library like CASL.js or Casbin.js
I don’t want to write access control twice what users can and cannot do.
Define All the Access Control in Payload config and some how access these control policies in the front end eco-system to dynamic show/hide ui element depending on the user access similar to Admin UI of Payload CMS.
Using Payload CMS as backend and use the same config to define what the users of the site can do in the front end.
Beta Was this translation helpful? Give feedback.
All reactions