dev@locazia: add auth require for storage upload

This commit is contained in:
user 2024-03-04 19:51:07 +03:00
parent 85d422377c
commit c1ed69b404
1 changed files with 1 additions and 0 deletions

View File

@ -13,6 +13,7 @@ import hashlib
async def s_api_v1_storage_post(request):
assert request.ctx.user, "No authorized"
if not request.files and not request.json:
return response.json({"error": "No file provided"}, status=400)