Interface: ViewAsState
Defined in: src/server/auth/access.ts:122
Owner-facing "View as" state for the admin chrome.
Properties
active
readonlyactive: {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
readonlycanImpersonate:boolean
Defined in: src/server/auth/access.ts:124
Only owners may impersonate.
roles
readonlyroles:object[]
Defined in: src/server/auth/access.ts:126
Selectable staff roles (access-roles + unassigned), for owners.
key
key:
string
label
label:
string