Allow create scope for media uploads

This commit is contained in:
2023-02-19 16:37:52 +11:00
parent a71371209b
commit 4495a715f1

View File

@@ -8,7 +8,7 @@ module Adamantium
def handle(req, res)
data = req.params[:file]
halt 401 unless verify_scope(req: req, scope: :media)
halt 401 unless verify_scope(req: req, scope: :create) || verify_scope(req: req, scope: :media)
upload_result = upload.call(file: data)