Skip to main content

Variable: getEffectiveContractor

const getEffectiveContractor: any

Defined in: src/server/auth/contractor.ts:59

Contractor identity for RENDERING the portal: the real signed-in contractor, OR — when an owner is "viewing as" a contractor — that contractor's record (resolved with owner privileges, company-scoped). Use this for READS in /contractor pages. Mutations keep using getCurrentContractor, which returns null for an owner, so an impersonating owner can never write as the contractor.