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.assets import AssetsController
|
||||||
|
from owrx.controllers.admin import AuthorizationMixin
|
||||||
from owrx.config import CoreConfig
|
from owrx.config import CoreConfig
|
||||||
import uuid
|
import uuid
|
||||||
import json
|
import json
|
||||||
|
|
||||||
|
|
||||||
# TODO: implement authorization
|
class ImageUploadController(AuthorizationMixin, AssetsController):
|
||||||
class ImageUploadController(AssetsController):
|
|
||||||
def __init__(self, handler, request, options):
|
def __init__(self, handler, request, options):
|
||||||
super().__init__(handler, request, options)
|
super().__init__(handler, request, options)
|
||||||
self.uuid = request.query["uuid"][0] if "uuid" in request.query else None
|
self.uuid = request.query["uuid"][0] if "uuid" in request.query else None
|
||||||
|
Loading…
Reference in New Issue
Block a user