- 问题:renderIntake / renderCustomIntake 要读 /custom/meta 与 /custom/projects、写 POST /custom/updates,这三个接口按 SEGMENT_MENU 全归 custom 菜单 → 仅有 intake 权限的账号进录入页直接 403 白屏(后端审计 B-3 发现)。 - guard 增加 assist 分支:GET custom/meta、GET custom/projects、POST custom/updates 按 custom / intake 中较高级别放行;定制本体(详情/新建/修改/归档/删除)仍严格 custom。 - 新增回归:intake-only 账号读 meta/清单 200、写交付记录 200、进定制详情/新建 403; staff-only 账号不享受 assist。 - README 权限章节与 MEMORY 同步 assist 口径 + EXPORT_MENU fail-closed 说明; MEMORY 记录 migrate_legacy_rbac 已下线(10-01 前旧库需经含迁移版本中转)。 - pytest 89 passed |
||
|---|---|---|
| .. | ||
| conftest.py | ||
| test_ai_export.py | ||
| test_api_contract.py | ||
| test_auth.py | ||
| test_custom_finance.py | ||
| test_periods_projects.py | ||
| test_rbac.py | ||
| test_staff_focus_weekly.py | ||