fix(blueprint): require planning access for detailed reads

This commit is contained in:
2026-03-30 11:55:43 +02:00
parent 7aa32f8a5c
commit 3a29ce4332
5 changed files with 102 additions and 7 deletions
+2 -3
View File
@@ -146,16 +146,15 @@ Reasoning:
### `packages/api/src/router/blueprint.ts`
- `listSummaries`: `planning-read`
- `listSummaries`, `list`, `getById`, `getByIdentifier`: `planning-read`
- `resolveByIdentifier`: `authenticated-safe-lookup`
- remaining reads stay unchanged in this rollout
- create, update, delete, global-flag writes: `admin-only`
Reasoning:
- `listSummaries` exposes `_count.projects`, so the assistant-facing summary list should not remain a broad authenticated read
- `resolveByIdentifier` already returns a narrow lookup shape suitable for low-risk name/id resolution
- broader blueprint read routes still support existing UI flows and need a separate follow-up slice before they can be tightened safely
- the broader blueprint reads expose full template configuration such as field definitions, defaults, and validation rules that belong to planning workflows rather than generic authenticated access
### `packages/api/src/router/holiday-calendar.ts`