feat: local Bootstrap Vue ECharts dashboards and universal genealogy write scope
This commit is contained in:
+3
-1
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user