Close remaining IAM JSON doors and re-walk the lab.
Some checks are pending
offline / test (push) Waiting to run

CS/sales/accounting/staff list endpoints and sales pricing writes
require IAM; fleet service env sets STAFF_AUTH=1. Department tests
use a private books file so lab NATS does not leak into them.
This commit is contained in:
George Lambert 2026-09-11 19:08:20 -04:00
parent c32b65038a
commit 2bb3884a1b
14 changed files with 37 additions and 8 deletions

View file

@ -87,6 +87,7 @@ const server = http.createServer(async (req, res) => {
return json(r.status, body);
}
if (req.method === 'GET' && url.pathname === '/credits') {
if (!(await denyOrRedirect(req, res, json, { permission: 'cs.review' }))) return;
const id = url.searchParams.get('customerId');
if (!id) return json(400, { error: 'customerId required' });
const out = await statement(id);