fix(security): authorize site uploads and harden tokens, media and request identity

This commit is contained in:
simoleo89
2026-09-13 19:24:43 +02:00
parent 52f6d1491f
commit 8abfe352ef
70 changed files with 1609 additions and 204 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ export async function GET(
req: Request,
{ params }: { params: Promise<{ id: string }> },
) {
const uid = await bearerUserId(req);
const uid = await bearerUserId(req, ["tickets:read"]);
if (!uid) return apiError("Unauthorized", 401);
const { id } = await params;