Skip to content

TaskView is a self-hosted project and task management platform focused on clarity, ownership, and control. TaskView is built for teams that want a transparent, self-hosted alternative to SaaS task managers.

425 B
Raw Blame
import { BillingRepository } from '../BillingRepository'
import { isOrgAdminFor } from './is-org-admin-for'

const repository = new BillingRepository()

export const isOrgAdminForSeller = isOrgAdminFor(async (id) => (await repository.fetchSellerById(id))?.organizationId ?? null)

export const isOrgAdminForCounterparty = isOrgAdminFor(
  async (id) => (await repository.fetchCounterpartyById(id))?.organizationId ?? null,
)