fix: Fix the privilege escalation vulnerability in system variables

This commit is contained in:
junjun
2026-06-08 17:01:44 +08:00
parent ba7b397c51
commit 7637ab391d
@@ -49,7 +49,6 @@ def list_all(session: SessionDep, trans: Trans, variable: SystemVariable):
data = SystemVariable(**r.__dict__)
if data.type == 'system':
data.name = trans(data.name)
del data.value
res.append(data)
return res