[中] 审批接口缺少认证保护 #99
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
问题描述
backend/app/api/approval.py 第19行 /approval/{id}/resolve 和第28行 /approval/{id} 没有添加认证依赖,任何知道审批ID的人都可以操作审批。
涉及文件
修复建议
添加 Depends(get_current_user) 认证依赖。
严重程度
中 - 未授权操作风险