dev@locazia: add auth require for storage upload
This commit is contained in:
parent
85d422377c
commit
c1ed69b404
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue