export function canAccessHumanCapital(role: string | undefined, department: string | null | undefined): boolean {
  return role === "owner" || department === "capital_humano" || department === "administracion";
}

export function canManageHumanCapital(role: string | undefined, department: string | null | undefined): boolean {
  if (role === "owner") {
    return true;
  }

  return role === "leader" && (department === "capital_humano" || department === "administracion");
}
