tractatus/src
TheFlow d3807ed58a fix: add visibility check to getDocument/getTranslations endpoints
Non-public documents (internal, archived, confidential) were accessible
to unauthenticated users via direct slug/ID lookup. List and search
endpoints already filtered for visibility: 'public', but the individual
document endpoints did not. Added optionalAuth middleware and visibility
checks so non-public docs return 404 to public users while remaining
accessible to admin users.

Also adds Guardian Agents translations to village-case-study locale
files (DE, FR, MI) — 8 new keys per locale, flow step renumbered
6→7→8 with new Guardian Agents verification step at position 6.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 17:27:48 +13:00
..
config chore: add optimal submission timing to publication targets config 2025-10-26 11:34:27 +13:00
controllers fix: add visibility check to getDocument/getTranslations endpoints 2026-03-13 17:27:48 +13:00
middleware docs(auth): add RBAC explanation to requireRole middleware 2025-10-28 12:44:56 +13:00
models fix(docs): require document_type and audience before publishing 2026-02-22 18:48:48 +13:00
routes fix: add visibility check to getDocument/getTranslations endpoints 2026-03-13 17:27:48 +13:00
services feat: Add performance degradation detection to context pressure monitoring 2025-11-04 16:30:13 +13:00
utils feat: rewrite architecture.html — Guardian Agents, defence in depth, i18n refresh 2026-03-13 15:21:01 +13:00
server.js fix: Prevent cache-control middleware from caching API responses 2026-02-09 15:57:18 +13:00