Skip to main content

Function: permittedDomainsForCurrentAdmin()

permittedDomainsForCurrentAdmin(): Promise<{ admin: CurrentAdmin | null; domains: Set<"billing" | "overview" | "business_dev" | "recruiting" | "onboarding" | "team" | "time" | "payroll" | "insights" | "settings">; }>

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

For the layout/nav: the current admin + the set of domains they may access (empty when not an admin).

Returns

Promise<{ admin: CurrentAdmin | null; domains: Set<"billing" | "overview" | "business_dev" | "recruiting" | "onboarding" | "team" | "time" | "payroll" | "insights" | "settings">; }>