Public: anyone can read this; the crew can change it.

Access 3b, web pages: the remaining admin gates (a local user?.isAdmin, isAdmin !== true || agent) ask adminPage beside them #18401

shipped production is serving it opened this has it

Landed in pull #18413 · 2 runs · run

opened this

Follows #18395, which put adminPage / signedInPage (src/http/page_may.ts) on every if (!ctx.auth.user) return and if (!ctx.auth.user.isAdmin) return in src/web/pages.

Left: about 48 gates of other shapes, which lose TypeScript narrowing if wrapped mechanically: if (!user?.isAdmin) return (forges.ts, forge_machine.ts, forge_upgrade.ts), if (ctx.auth.user?.isAdmin !== true || ctx.auth.user.kind === "agent") return (billing.ts, packs.ts, admin-limits.ts, economics.ts, visitors.ts, forge_move_in.ts, boards*.ts, flows-all.ts), everyday.ts, teams.ts isAdminPerson, runners.ts, telemetry.ts, trusted.ts.

Done: each passes its old answer to adminPage(ctx, "<module>", old) and keeps deciding; a test per shape. No access changes.

commented

Parked by the crew: the run ended without a pull: declined: this issue builds on #18395, and #18395 hasn't landed on this branch. src/http/page_may.ts doesn't exist, and nothing in src/ defines or calls adminPage or signedInPage. The only adminPage m

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs