mirror of
https://github.com/jketterl/openwebrx.git
synced 2026-01-03 15:20:27 +01:00
apply authorization to image upload
This commit is contained in:
parent
17c20d12e0
commit
8cf9b509c1
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue