forked from 0x2620/pandora
filter lists, alloed editList to write query
This commit is contained in:
parent
fa623dc0b0
commit
6eed38520d
2 changed files with 9 additions and 2 deletions
|
|
@ -102,7 +102,7 @@ def editList(request):
|
|||
list = get_object_or_404_json(models.List, pk=data['list'])
|
||||
if list.editable(request.user):
|
||||
for key in data:
|
||||
if key in ('name', 'public'):
|
||||
if key in ('name', 'public', 'query'):
|
||||
setattr(list, key, data['key'])
|
||||
else:
|
||||
response = json_response(status=403, text='not allowed')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue