feat(v2): 实现SQLite对公租赁经验加工与卡片预审轨迹闭环

This commit is contained in:
2026-10-01 13:38:03 +08:00
parent 9c351b08d3
commit fa4163b2d0
60 changed files with 2111 additions and 59 deletions
+1 -1
View File
@@ -151,7 +151,7 @@ def project(project_id: str, request: Request):
guard(request, project_id)
result = translate(lambda: service().get_project(project_id))
current_role = request.state.identity["role"]
result["plans"] = [p for p in result["plans"] if current_role == "admin" or not p.get("audience") or current_role in p["audience"]]
result["plans"] = [p for p in result["plans"] if (current_role == "reviewer" or p.get("run_kind") != "independent_review") and (current_role == "admin" or not p.get("audience") or current_role in p["audience"])]
return result