fix: capture and persist target object names for delete, outbound, and borrow operations in audit logs

This commit is contained in:
DXC
2026-03-20 15:47:13 +08:00
parent b08bbba718
commit 032479fe38
15 changed files with 54 additions and 21 deletions

View File

@ -317,9 +317,11 @@ class AuthService:
if not user:
raise Exception("用户不存在")
# 提前获取用户名用于审计日志
username = user.username
db.session.delete(user)
db.session.commit()
return True
return username
@staticmethod
def get_user_permissions(role_code):