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:
parent
313ba7a27b
commit
ca8817919e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user