apply authorization to image upload

This commit is contained in:
Jakob Ketterl 2021-02-10 20:32:07 +01:00
parent 17c20d12e0
commit 8cf9b509c1
1 changed files with 2 additions and 2 deletions

View File

@ -1,11 +1,11 @@
from owrx.controllers.assets import AssetsController
from owrx.controllers.admin import AuthorizationMixin
from owrx.config import CoreConfig
import uuid
import json
# TODO: implement authorization
class ImageUploadController(AssetsController):
class ImageUploadController(AuthorizationMixin, AssetsController):
def __init__(self, handler, request, options):
super().__init__(handler, request, options)
self.uuid = request.query["uuid"][0] if "uuid" in request.query else None