RBAC
Adds role-based access control to your Payload CMS.
Installation
pnpm add payload-rbac About
This plugin provides an easy way to implement role-based access control in your Payload CMS. It allows you to define roles like 'reader', 'maintainer', and 'admin', and to control access based on these roles. Users can be restricted from accessing resources based on their assigned role, enhancing the security and management of user permissions. You can configure it by adding a simple setup in the Payload config file, specifying which collections will utilize RBAC and what roles are available. The plugin also offers a range of access control functions such as allowing anonymous access, allowing access to any logged-in user, or filtering access based on specific conditions like published status. This flexibility supports various access management scenarios across applications. The plugin requires Payload version 1.6.22 or later and integrates directly with the Payload's collection and user management systems, making it a powerful addition for applications needing structured access control.
Package info
- Package name
payload-rbac- Latest version
1.0.3- Unpacked size
- 39 kB
- License
- MIT
- Weekly downloads
- 74
- Last publish
- Apr 18, 2023
More from teunmooij
View profileQuery
Type-safe query filters and field selection for Payload, with a REST select parameter plugin.
create api docs
Generate OpenAPI 3 documentation for Payload CMS.
Swagger
Swagger plugin for Payload CMS that generates OpenAPI documentation.
OpenAPI
Generate OpenAPI 3 documentation for Payload CMS endpoints.