feat: local Bootstrap Vue ECharts dashboards and universal genealogy write scope

This commit is contained in:
Codex
2026-10-08 22:41:19 +08:00
parent d8826152c6
commit fb87ae4de9
33 changed files with 980 additions and 110 deletions
+3 -1
View File
@@ -102,7 +102,9 @@ class Accounts:
if actor and actor['id'] == uid and (disabled or role != actor['role']):
raise a.Problem('不能停用或降低当前登录账号的管理权限')
related = a.clean_text(data.get('relatedToId', ''), 32)
person = a.clean_text(data.get('personId', ''), 32)
person = a.clean_text(data.get('personId', (old or {}).get('personId', '')), 32)
if old and old.get('personId') and person != old['personId']:
raise a.Problem('本人关联已固定,不能通过更换或解除关联绕过五代维护范围', 403)
if related and related != uid and not a.get_object('users', related):
raise a.Problem('关系参照账号不存在')
if related and related != uid: