Forráskód Böngészése

fix(pl): drop accidental cert-perm guard from dibang upsert commit.

Co-authored-by: Cursor <cursoragent@cursor.com>
zlwu 1 hónapja
szülő
commit
2a9cc6084b
1 módosított fájl, 0 hozzáadás és 2 törlés
  1. 0 2
      backend/app/api/pl/plan.py

+ 0 - 2
backend/app/api/pl/plan.py

@@ -1915,8 +1915,6 @@ def patch_plan_hazard_cert_ready(
     user: DbUserContext = Depends(get_db_current_user),
 ) -> PlanWithProducts:
     """标记或取消危化品证书齐备(人工确认)"""
-    if not user_can_manage_plan_cert_ready(db, user):
-        raise HTTPException(status_code=403, detail="无证书齐备操作权限")
     tenant_no = get_tenant_no(db, user.to_tenant_user_dict())
     _get_plan(db, tenant_no, id, user)
     set_hazard_cert_ready(