From 70475d8397fa9ca8b7e62f7e2fc0b4cba6e41dba Mon Sep 17 00:00:00 2001 From: ChrisChrome Date: Wed, 18 Jan 2023 12:26:08 -0700 Subject: Fix a funny security vuln --- src/api/routes/guilds/#guild_id/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/routes/guilds/#guild_id/index.ts b/src/api/routes/guilds/#guild_id/index.ts index 3f3f61cd..0df90f56 100644 --- a/src/api/routes/guilds/#guild_id/index.ts +++ b/src/api/routes/guilds/#guild_id/index.ts @@ -55,7 +55,7 @@ router.get("/", route({}), async (req: Request, res: Response) => { router.patch( "/", - route({ body: "GuildUpdateSchema" }), + route({ body: "GuildUpdateSchema", permission: "MANAGE_GUILD" }), async (req: Request, res: Response) => { const body = req.body as GuildUpdateSchema; const { guild_id } = req.params; -- cgit 1.4.1