Skip to content

Function: useRbac() ​

ts
function useRbac(): Accessor<RbacChecker>;

Defined in: packages/solid/src/context.ts:56

The checker of the nearest RbacProvider, as an accessor. Throws when there is none.

Returns ​

Accessor<RbacChecker>

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