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()