Skip to content

Interface: RbacProcedureContext ​

Defined in: packages/trpc/src/guards.ts:123

The context a guard needs: ctx.rbac, a SubjectRbac or null (see createRbacContext()). A procedure whose context has no rbac can't .use() the guard (unless createGuards() got a resolve).

Properties ​

PropertyTypeDefined in
rbacSubjectRbac<any, any> | nullpackages/trpc/src/guards.ts:124

Released under the MIT License. Inspired by spatie/laravel-permission.