Skip to main content

Function: domainForPath()

domainForPath(pathname): "billing" | "overview" | "business_dev" | "recruiting" | "onboarding" | "team" | "time" | "payroll" | "insights" | "settings" | null

Defined in: src/lib/permissions/index.ts:83

The access domain a pathname belongs to, or null if unmapped (caller decides the default).

Parameters

pathname

string

Returns

"billing" | "overview" | "business_dev" | "recruiting" | "onboarding" | "team" | "time" | "payroll" | "insights" | "settings" | null