- toggleProductDocFolderAction: owner-only scope (where: id + user_id,
NIET productAccessFilter — folder-config is product-setting). Idempotent
(no-op + success als al in target-staat). Disabled folder verwijdert
GEEN docs uit DB; alleen flag in enabled_doc_folders. Log met doc_id:null
+ FOLDER_ENABLED/FOLDER_DISABLED.
- listProductDocsAction: read-only, scope via productAccessFilter (zonder
demo-403 — demo MAG lezen, zie plan §B.4). Geen rate-limit. Select
zonder content_md. OrderBy [folder, slug]. Mapt DB-enum naar API-string.
- Tests: 10 nieuwe (owner-only-check, idempotent, enable+disable-logs,
demo-read-OK, folder-filter, ontbreken content_md in select). Totaal
28 tests in product-docs actions; 1008 tests groen in monorepo.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>