mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-07-18 00:55:50 +00:00
add allowed_networks to ADMIN_ONLY_PROPS
This commit is contained in:
parent
a01814069a
commit
911644531b
1 changed files with 2 additions and 2 deletions
|
|
@ -252,8 +252,8 @@ class UserViewSet(viewsets.ModelViewSet):
|
|||
request.data.pop(key, None)
|
||||
|
||||
# Strip admin-managed keys from custom_properties so users cannot
|
||||
# set their own XC credentials via this endpoint.
|
||||
ADMIN_ONLY_PROPS = {"xc_password"}
|
||||
# set their own XC credentials or network rules via this endpoint.
|
||||
ADMIN_ONLY_PROPS = {"xc_password", "allowed_networks"}
|
||||
cp = request.data.get("custom_properties")
|
||||
if isinstance(cp, dict):
|
||||
for key in ADMIN_ONLY_PROPS:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue