Wiki pages gain a Draft flag pinned to their original creator. A draft is visible only to its creator, wiki moderators and admins: the collection's read access returns a where clause so the REST/local API filters drafts, and every frontend query ANDs the same clause (they run with overrideAccess). Publishing is one-way. A page whose stored draft is false is rejected (403) when sent draft: true, both in the service and in access.update. UI: amber DraftBanner on the detail page, a Draft chip in WikiRow, and a Draft switch in the editor that disables once the page is published. |
||
|---|---|---|
| .. | ||
| audit | ||
| e2e | ||
| fixtures | ||
| helpers | ||
| int | ||
| push-schema.ts | ||
| seed-baseline.ts | ||
| test-db.ts | ||
| vitest-global.ts | ||
| vitest-marker.ts | ||
| vitest-reporter.ts | ||
| vitest-teardown.ts | ||
| vitest-worker-setup.ts | ||