Skip to content

Interface: SubjectsWithPermissionOptions<G> ​

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

Options of Rbac.subjectsWithPermission.

Extends ​

Extended by ​

Type Parameters ​

Type ParameterDefault type
G extends stringstring

Properties ​

PropertyTypeDescriptionInherited fromDefined in
expandWildcards?booleanWith wildcard: true, also return subjects whose granted permission is a wildcard that implies one of the given names (articles.* or * for articles.edit), directly or through a role. The names then don't need to exist as permissions, as with hasPermissionTo(). Has no effect when wildcard is off. Default: false (only exact permission rows match, and unknown names throw PermissionDoesNotExist).-packages/core/src/query.ts:14
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.