Skip to content

Interface: SubjectsWithoutRoleOptions<G> ​

Defined in: packages/core/src/query.ts:18

Options of Rbac.subjectsWithoutRole.

Extends ​

Type Parameters ​

Type ParameterDefault type
G extends stringstring

Properties ​

PropertyTypeDescriptionInherited fromDefined in
amongreadonly Id[]The candidate ids (a page of your users, the members of a team...). The engine only knows subjects that have assignments, so it filters these instead of listing every subject. Ids are compared as strings, so 1 and '1' are the same subject. The result keeps their order.-packages/core/src/query.ts:24
guard?GGuard name, e.g. web or api. Defaults to defaultGuard.ScopeOptions.guardpackages/core/src/rbac.ts:73
team?TeamIdTeam id. Only allowed when teams is enabled.ScopeOptions.teampackages/core/src/rbac.ts:78

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