fix(demo): refuse publishing the homepage hero (DM21) #225
Reference in New Issue
Block a user
No description provided.
Delete Branch "fix/demo-hero-publish-lock"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Demo-plan amendment (website#222), DM21, decided by the org lead 2026-10-26.
Problem. Settings stay open on the demo (DM2), so Admin → Hero's Publish wrote
hero_layout, which changes the homepage hero every visitor sees.Change.
hero_layoutjoinsPROTECTED_SETTINGSinserver/src/demo/locks.js. APUT /admin/settingsthat names it gets403 DEMO_LOCKEDwithkeys: ['hero_layout'].hero_layout_draft, so they still work.Tests. A new row in
test/demoLocks.test.jschecks that a draft-only body goes through and that a publish body is refused with the key named. The full server suite passes locally: 2214 passed, 0 failed (MODULES_DIRpointed at an empty path, as usual). ThePUT /admin/settingsroute is unchanged, so there's no swagger change.Docs: docs PR on branch
fix/demo-hero-publish-lock(DEMO_MODE.md §3.3 + DM21, BACKEND_DESIGN.md).🤖 Generated with Claude Code
https://claude.ai/code/session_01E14m6SuuY6i1vASFeGDBeY