/** * Who the signed-in person is to this workspace. * * One seam, one predicate. Administrator is a workspace-level console rather * than a licensed product, so it is offered by role instead of by entitlement * (`isProductEntitled` answers "did the school buy this", which is a different * question). Keeping the predicate here means the launcher, the products home, * and the product switcher all decide from the same line rather than each * inventing its own idea of who counts as an admin. * * Mock, like `ENTITLED_PRODUCTS` beside it — the dogfood workspace signs in as * an administrator so the surface is visible while building. Swap the constant * for the session claim when auth lands; every caller reads the predicate. */ export type WorkspaceRole = "administrator" | "member" export const CURRENT_WORKSPACE_ROLE: WorkspaceRole = "administrator" export function isWorkspaceAdmin(): boolean { return CURRENT_WORKSPACE_ROLE === "administrator" }