This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user