fix(pl): drop accidental cert-perm guard from dibang upsert commit.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
68564c61f0
commit
2a9cc6084b
1 file changed
-2
@@ -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(
|
||||
|
||||
Reference in new issue
Block a user