From 037684094a02fb4ed20b156d2afb29e56813f0e2 Mon Sep 17 00:00:00 2001 From: stringsplit <77242831+nbitzz@users.noreply.github.com> Date: Tue, 21 May 2024 20:05:56 -0700 Subject: [PATCH] FUCKFUCKFUCK --- src/server/routes/api/v0/authRoutes.ts | 2 +- src/server/routes/api/v0/fileApiRoutes.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server/routes/api/v0/authRoutes.ts b/src/server/routes/api/v0/authRoutes.ts index c29af29..eef877c 100644 --- a/src/server/routes/api/v0/authRoutes.ts +++ b/src/server/routes/api/v0/authRoutes.ts @@ -138,7 +138,7 @@ export default function (files: Files) { authRoutes.post( "/dfv", requiresAccount, - requiresPermissions("manage"), + requiresPermissions("manage_files"), // Used body-parser async (ctx) => { const body = await ctx.req.json() diff --git a/src/server/routes/api/v0/fileApiRoutes.ts b/src/server/routes/api/v0/fileApiRoutes.ts index 434b817..b0edab2 100644 --- a/src/server/routes/api/v0/fileApiRoutes.ts +++ b/src/server/routes/api/v0/fileApiRoutes.ts @@ -49,7 +49,7 @@ export default function (files: Files) { fileApiRoutes.post( "/manage", - requiresPermissions("manage"), + requiresPermissions("manage_files"), async (ctx) => { let acc = ctx.get("account") as Accounts.Account const body = await ctx.req.json()