Interface: RbacProviderProps
Defined in: packages/solid/src/context.ts:13
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
children? | Element | - | packages/solid/src/context.ts:25 |
loading? | boolean | The 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 |
snapshot | RbacSnapshot | null | undefined | Roles & 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? | boolean | Enable wildcard matching (articles.*). Must match the server's wildcard setting. Default: false. | packages/solid/src/context.ts:17 |
