@zealamic/payload-auth-rbac-plugin 1.0.0-beta.11 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -27,7 +27,7 @@ Demo: `dev/rbac.ts`, `dev/collections/posts.ts`.
|
|
|
27
27
|
- **Five RBAC collections** — features, actions, permissions, roles, join table ([details](https://github.com/zealamic/payload-auth-rbac-plugin/blob/main/docs/COLLECTIONS.md))
|
|
28
28
|
- **Multi-role users** — union of enabled grants across assigned roles
|
|
29
29
|
- **Granular permissions** — any `featureCode` + `actionCode` pair ([helpers](https://github.com/zealamic/payload-auth-rbac-plugin/blob/main/docs/UTILS.md))
|
|
30
|
-
- **Data scope** — per-role `own` / `hierarchy` / `all` for row-level filtering (`
|
|
30
|
+
- **Data scope** — per-role `own` / `hierarchy` / `all` for row-level filtering ([`dataScope` vs `isSuperAdmin`](https://github.com/zealamic/payload-auth-rbac-plugin/blob/main/docs/COLLECTIONS.md#what-is-datascope)`)
|
|
31
31
|
- **Permission matrix** — role edit UI; syncs to `roles-permissions` on save
|
|
32
32
|
- **TypeScript** — typed plugin options and exports (`/types`)
|
|
33
33
|
- **i18n** — plugin-owned translations merged into Payload i18n ([guide](https://github.com/zealamic/payload-auth-rbac-plugin/blob/main/docs/TRANSLATIONS.md))
|
|
@@ -66,8 +66,8 @@ export default buildConfig({
|
|
|
66
66
|
1. **permission-features** — e.g. `posts`, `users` (`code` = `featureCode` in access helpers)
|
|
67
67
|
2. **permission-actions** — e.g. `create`, `read`, `update`, `delete`
|
|
68
68
|
3. **permissions** — one row per feature + action pair
|
|
69
|
-
4. **roles** — set
|
|
70
|
-
5. **users** — assign roles; bootstrap
|
|
69
|
+
4. **roles** — set [dataScope](https://github.com/zealamic/payload-auth-rbac-plugin/blob/main/docs/COLLECTIONS.md#what-is-datascope); configure matrix on update screen → Save
|
|
70
|
+
5. **users** — assign roles; bootstrap [isSuperAdmin](https://github.com/zealamic/payload-auth-rbac-plugin/blob/main/docs/COLLECTIONS.md#bootstrap-super-admin) via seed/API
|
|
71
71
|
|
|
72
72
|
→ Full collection reference: **[COLLECTIONS](https://github.com/zealamic/payload-auth-rbac-plugin/blob/main/docs/COLLECTIONS.md)**
|
|
73
73
|
|