1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-10 04:32:35 +01:00

Fix a funny security vuln

This commit is contained in:
ChrisChrome 2023-01-18 12:26:08 -07:00
parent 313ba7a27b
commit ca8817919e

View File

@ -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;