summary refs log tree commit diff
path: root/api/src
diff options
context:
space:
mode:
authorErkin Alp Güney <erkinalp9035@gmail.com>2022-02-04 08:49:28 +0300
committerGitHub <noreply@github.com>2022-02-04 08:49:28 +0300
commit57057c8711422beb904b8edbc5fdaa88f703932b (patch)
tree6cf8cefedeeeb029c0d3c7d3e48442e05a2cacc6 /api/src
parentExtend the pretense of non-existence of self-bans to API view route too (diff)
downloadserver-57057c8711422beb904b8edbc5fdaa88f703932b.tar.xz
remove pretense of nonexistence from main view route for now to make it compile while thinking of a fix
Diffstat (limited to 'api/src')
-rw-r--r--api/src/routes/guilds/#guild_id/bans.ts2
1 files changed, 0 insertions, 2 deletions
diff --git a/api/src/routes/guilds/#guild_id/bans.ts b/api/src/routes/guilds/#guild_id/bans.ts
index 5a425680..c73cc3e6 100644
--- a/api/src/routes/guilds/#guild_id/bans.ts
+++ b/api/src/routes/guilds/#guild_id/bans.ts
@@ -27,8 +27,6 @@ router.get("/", route({ permission: "BAN_MEMBERS" }), async (req: Request, res:
 	let bans = await Ban.find({ guild_id: guild_id });
 
 	/* Filter secret from database registry.*/
-	if (banned_user.user_id === banned_user.executor_id) throw DiscordApiErrors.UNKNOWN_BAN;
-	// hide self-bans from view to prevent victim chasing	
 	
 	bans.forEach((registry: BanRegistrySchema) => {
 	delete registry.ip;