From 8cf9b509c13afe237e58be2104d4ff3b99457d2d Mon Sep 17 00:00:00 2001 From: Jakob Ketterl Date: Wed, 10 Feb 2021 20:32:07 +0100 Subject: [PATCH] apply authorization to image upload --- owrx/controllers/imageupload.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/owrx/controllers/imageupload.py b/owrx/controllers/imageupload.py index 28ce8ce..8545020 100644 --- a/owrx/controllers/imageupload.py +++ b/owrx/controllers/imageupload.py @@ -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