Skip to main content

Function: setStaffAccessRole()

setStaffAccessRole(_prev, formData): Promise<SetRoleState>

Defined in: src/server/actions/team.ts:20

Owner-only: assign (or clear) a STAFF admin's page-access role. Owners always have full access and can't be downgraded here. A blank value clears the role (→ overview only). The role key must exist in the company's configured access_roles.

Parameters

_prev

SetRoleState

formData

FormData

Returns

Promise<SetRoleState>