Skip to content

Interface: SubjectsWithoutPermissionOptions<G> ​

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

Options of Rbac.subjectsWithoutPermission.

Extends ​

Type Parameters ​

Type ParameterDefault type
G extends stringstring

Properties ​

PropertyTypeDescriptionInherited fromDefined in
amongreadonly Id[]The candidate ids, as in SubjectsWithoutRoleOptions.among.-packages/core/src/query.ts:30
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).SubjectsWithPermissionOptions.expandWildcardspackages/core/src/query.ts:14
guard?GGuard name, e.g. web or api. Defaults to defaultGuard.SubjectsWithPermissionOptions.guardpackages/core/src/rbac.ts:73
team?TeamIdTeam id. Only allowed when teams is enabled.SubjectsWithPermissionOptions.teampackages/core/src/rbac.ts:78

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