Interface: BeforeContext<T>
Defined in: packages/core/src/rbac.ts:82
Context passed to the RbacOptions.before hook.
Type Parameters
| Type Parameter | Default type |
|---|---|
T extends RbacTypeConfig | DefaultRbacTypes |
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
permission | string | The permission name being checked. | packages/core/src/rbac.ts:89 |
subject | SubjectRbac<T, string> | The subject being checked (already scoped to its guard & team). With per-guard names, it accepts the names of every guard, since the hook runs for all of them. | packages/core/src/rbac.ts:87 |
