Skip to content

Interface: RbacProviderProps ​

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

Properties ​

PropertyTypeDescriptionDefined in
children?Element-packages/solid/src/context.ts:25
loading?booleanThe snapshot is still being fetched. <Can>, <Cannot>, <HasRole> and <UnlessRole> then render nothing (not even fallback), so nothing flashes before the real permissions arrive. Default: false.packages/solid/src/context.ts:24
snapshotRbacSnapshot | null | undefinedRoles & permissions of the current user, e.g. from rbac.for(user).snapshot() on the server. null = guest.packages/solid/src/context.ts:15
superAdminRoles?readonly string[]Roles that pass every can check (super admin).packages/solid/src/context.ts:19
wildcard?booleanEnable wildcard matching (articles.*). Must match the server's wildcard setting. Default: false.packages/solid/src/context.ts:17

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