RBAC

Adds role-based access control to your Payload CMS.

Community 140 74/wk MIT v1.0.3

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 profile

Similar plugins

More in Auth