summary refs log tree commit diff
diff options
context:
space:
mode:
authorKuna <65683493+Thesourtimes@users.noreply.github.com>2021-12-24 19:08:24 +0000
committerGitHub <noreply@github.com>2021-12-24 19:08:24 +0000
commitded0567d2c932bca365041c203fdf32e93df3640 (patch)
tree959b088296453ac4f0d14d546b77288788ded428
parent(Finally) make a temporary fix for IP leak (diff)
downloadserver-ded0567d2c932bca365041c203fdf32e93df3640.tar.xz
Comment about the hotfix
-rw-r--r--api/src/routes/guilds/#guild_id/bans.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/api/src/routes/guilds/#guild_id/bans.ts b/api/src/routes/guilds/#guild_id/bans.ts

index 75a50038..1e09a38d 100644 --- a/api/src/routes/guilds/#guild_id/bans.ts +++ b/api/src/routes/guilds/#guild_id/bans.ts
@@ -19,6 +19,8 @@ export interface BanRegistrySchema { const router: Router = Router(); +/* TODO: Deleting the secrets is just a temporary go-around. Views should be implemented for both safety and better handling. */ + router.get("/", route({ permission: "BAN_MEMBERS" }), async (req: Request, res: Response) => { const { guild_id } = req.params;