Lock pages against editor changes #42

Merged
GeoffMoore1979 merged 2 commits from feature/media-users-pages into master 2026-10-02 19:12:33 +02:00
2 Commits
Author SHA1 Message Date
Geoff MooreandClaude Sonnet 5 bc4730eb30 docs: document page locking and prior security fixes
README, the changelog and the built-in welcome page were missing the
page-lock feature and the bootstrap/LoginRateLimiter/Logger hardening
from the earlier security audit.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-10-02 12:11:09 +01:00
Geoff MooreandClaude Sonnet 5 83ae3a08ff feat: lock pages against editor changes
Administrators can lock a page from the Pages list to stop editors
publishing, saving a draft, or scheduling a change to it. Administrators
are never restricted by a lock. State is stored per-page URI in the new
cms/data/pagelocks.json, following the existing pagetemplates.json
pattern: it moves with the page on rename, is cleared on delete, and is
never copied onto a duplicate.

- New lockPageAction and assertNotLockedForEditor() guard, called from
  save/saveDraft/schedule.
- getPages responses gain a locked flag; the Pages list gets a Lock/
  Unlock row action and a Locked badge.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-10-02 12:11:06 +01:00