Skip to content

Commit

Permalink
Auth check for defaults api
Browse files Browse the repository at this point in the history
  • Loading branch information
m4rk3r committed Feb 18, 2022
1 parent 96d77bf commit 76ed5af
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions webrecorder/webrecorder/admincontroller.py
Expand Up @@ -469,6 +469,7 @@ def get_defaults():
return {'defaults': data}

@self.app.put('/api/v1/admin/defaults')
@self.admin_view
def update_defaults():
data = request.json
if 'max_size' in data:
Expand Down

0 comments on commit 76ed5af

Please sign in to comment.