@voltro/plugin-rbac
v0.61.0
Published
Role-based access control — roles compile to scopes on top of @voltro/protocol's scope system. Ships rbacPlugin() (role→scope interceptor + resource-aware guard resolver, failing with protocol's typed ScopeError), the permission()/assertPermission()/anyPe
Maintainers
Readme
@voltro/plugin-rbac
Role-based access control — roles compile to scopes on top of @voltro/protocol's scope system. Ships rbacPlugin() (role→scope interceptor + resource-aware guard resolver, failing with protocol's typed ScopeError), the permission()/assertPermission()/anyPermission() handler guards, the compileRoles() pure compiler, cross-dialect roles + userRoles tables. The UI gate lives in @voltro/client (useCan / useCanAny) — scopes are a framework concept, so gating a button must not require this plugin.
📖 Documentation · voltro.dev · Voltro Cloud
npm install @voltro/plugin-rbac→ Read the documentation for @voltro/plugin-rbac
Installation, guides, the full API reference, and examples all live in the Voltro documentation — the single source of truth. This README is deliberately short so there is nothing here to drift out of date.
License
Proprietary. © 2026 Voltro UG. Your use is governed by the
Terms of Service. See the bundled LICENSE.
