Skip to main content
zerotal

Documentation


Documentation / @zerotal/admin / index / impersonateAction

Function: impersonateAction()

impersonateAction(): Action

Defined in: admin/src/actions/Action.ts:434

Act as this user, and get a way back.

Gated twice: the resource must opt in with static impersonatable = true, and its can("impersonate", record) must allow this record. can() alone defaults to allow, which is the wrong default for becoming another user, so the opt-in carries the refusal.

Returns

Action