[0.2.8.12][ci]
All checks were successful
CI / docker-ci (push) Successful in 30s

This commit is contained in:
DSQ
2026-03-23 12:42:27 +08:00
parent 19f805c818
commit 0dd7879389

View File

@@ -1264,6 +1264,10 @@ def add_key_view(request):
request.session.modified = True request.session.modified = True
except Exception: except Exception:
pass pass
cur_manage = [str(x).strip() for x in list((me or {}).get("manage_key") or []) if str(x).strip()]
if key_name not in cur_manage:
cur_manage.append(key_name)
es_update_user_by_id(uid, manage_key=cur_manage)
elif can_manage_reg: elif can_manage_reg:
cur = [str(x).strip() for x in list((me or {}).get("registration_manage_keys") or []) if str(x).strip()] cur = [str(x).strip() for x in list((me or {}).get("registration_manage_keys") or []) if str(x).strip()]
if key_name not in cur: if key_name not in cur: