Interface: RbacPluginOptions
Defined in: packages/vue/src/plugin.ts:6
Extends
Properties
| Property | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|
components? | boolean | Register <Can> and <HasRole> globally. Default: true. | - | packages/vue/src/plugin.ts:10 |
directives? | boolean | Register v-can and v-role globally. Default: true. | - | packages/vue/src/plugin.ts:8 |
globalProperties? | boolean | Add $can, $canAny, $canAll, $hasRole, $hasAnyRole, $hasAllRoles, $rbac to templates. Default: true. | - | packages/vue/src/plugin.ts:12 |
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. | RbacStateOptions.loading | packages/vue/src/state.ts:15 |
snapshot? | RbacSnapshot | null | Initial snapshot, usually await rbac.for(user).snapshot() sent by the server. null = guest. | RbacStateOptions.snapshot | packages/vue/src/state.ts:9 |
superAdminRoles? | readonly string[] | Roles that pass every permission check, like a Gate::before super-admin rule. Default: []. | RbacStateOptions.superAdminRoles | packages/vue/src/state.ts:19 |
wildcard? | boolean | Match permissions with wildcard semantics (articles.* covers articles.edit). Default: false. | RbacStateOptions.wildcard | packages/vue/src/state.ts:17 |
