Interface: RbacStateOptions
Defined in: packages/vue/src/state.ts:7
Extended by
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
loading? | boolean | Start in the loading state (snapshot still being fetched): <Can>, <HasRole>, v-can and v-role render nothing, not even the fallback or a not branch, until setSnapshot() is called. Every check (can, cannot, hasRole, ...) returns false meanwhile. Default: false. | packages/vue/src/state.ts:15 |
snapshot? | RbacSnapshot | null | Initial snapshot, usually await rbac.for(user).snapshot() sent by the server. null = guest. | packages/vue/src/state.ts:9 |
superAdminRoles? | readonly string[] | Roles that pass every permission check, like a Gate::before super-admin rule. Default: []. | packages/vue/src/state.ts:19 |
wildcard? | boolean | Match permissions with wildcard semantics (articles.* covers articles.edit). Default: false. | packages/vue/src/state.ts:17 |
