auth/cell_steward.ts view source
(deps: QueryDeps, auth: RequestContext | null, cell: CellRow): Promise<boolean> import {cell_steward_admits} from '@fuzdev/fuz_app/auth/cell_steward.js'; Whether auth stewards cell — loads the governing root and applies
can_steward_cell.
Resolves false without a query for an unauthenticated caller, a root, or a
cell whose moderation isn't 'pending' / 'rejected'; a missing or
soft-deleted root is false too.
deps
query deps
auth
request context, or null for unauthenticated callers
RequestContext | nullcell
the cell the caller couldn't otherwise view
returns
Promise<boolean>
whether the steward arm admits the caller