Skip to main content

Interface: ViewAsState

Defined in: src/server/auth/access.ts:122

Owner-facing "View as" state for the admin chrome.

Properties​

active​

readonly active: { key: string; kind: "contractor" | "role"; label: string; } | null

Defined in: src/server/auth/access.ts:128

The active impersonation, or null. key re-selects it in the switcher.


canImpersonate​

readonly canImpersonate: boolean

Defined in: src/server/auth/access.ts:124

Only owners may impersonate.


roles​

readonly roles: object[]

Defined in: src/server/auth/access.ts:126

Selectable staff roles (access-roles + unassigned), for owners.

key​

key: string

label​

label: string