Warding

Role-based access control with user and role collections for Payload admin and endpoints

Community 17 23/wk MIT v0.1.10

Installation

pnpm add payload-warding

About

Warding adds role-based access control to a Payload project by generating a user collection and a role collection. Each role grants create, read, update and delete rights over collections, globals, individual fields and custom endpoints, and you edit those grants on the role page in the admin panel. A root account with full access can be seeded from credentials you provide, and the first user created on the setup page is bound to the root role. Projects that need their own rules can still write custom access functions and call the plugin's check alongside them.

Package info

Package name
payload-warding
Latest version
0.1.10
Unpacked size
127 kB
License
MIT
Weekly downloads
23
Last publish
Nov 14, 2023

Similar plugins

More in Auth

Birth month and year check at sign-up that flags minors by country and region

Lets one Payload admin panel manage content for many separate tenants

Linked accounts and role hats, with a second factor before switching to a sensitive role

Sells digital products with signed download links that expire and stop on refund

Adds passkey sign-in and passkey management to the Payload login and account screens

Lets AI assistants read and edit Payload content over MCP with scoped API keys