Fix: licence read-only mode blocks the v2 routes too (1.52.3)

The read-only guard only listed v1 paths, and every screen has used
/api/v2 since 1.51.15, so a suspended, revoked or unlicensed site could
still create events, take registrations and start payments. The v2
successors of each blocked v1 route are blocked now; a test checks each
blocked v2 path exists in the OpenAPI document.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-02 15:14:50 +02:00
co-authored by Claude Opus 5.5
parent 31aa787b17
commit b28c8a8876
10 changed files with 96 additions and 9 deletions
+11
View File
@@ -7,6 +7,17 @@ and this project follows [Semantic Versioning](https://semver.org/).
## [Unreleased]
## [1.52.3] - 2026-11-02
### Fixed
- **Licence read-only mode works again.** The read-only guard (`src/hub/readOnly.js`) only listed
v1 paths, and every screen has used `/api/v2` since 1.51.15 — so a suspended, revoked or
unlicensed site could still create and change events, take registrations and start payments.
The v2 successors of every blocked v1 route are now blocked too (answered as `READ_ONLY` with
reason `LICENCE_READ_ONLY`). A test checks each blocked v2 path is a real route in the OpenAPI
document, so a renamed route can't slip out of the list.
## [1.52.2] - 2026-11-02
### Changed