summary refs log tree commit diff
path: root/src/api
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-10-07 20:06:09 +1100
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-10-07 20:07:35 +1100
commit67a8c0d445183caa03a1b00b27a799787d28c5f0 (patch)
tree11cd38a1835f90416e085ff9a7fdd6f8fdcd1584 /src/api
parentfix self_edit_guilds right (diff)
downloadserver-67a8c0d445183caa03a1b00b27a799787d28c5f0.tar.xz
remove self_edit_guilds, was dumb
Diffstat (limited to 'src/api')
-rw-r--r--src/api/routes/guilds/#guild_id/index.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/api/routes/guilds/#guild_id/index.ts b/src/api/routes/guilds/#guild_id/index.ts
index ca7de430..fb3589cb 100644
--- a/src/api/routes/guilds/#guild_id/index.ts
+++ b/src/api/routes/guilds/#guild_id/index.ts
@@ -44,9 +44,9 @@ router.patch(
 		const rights = await getRights(req.user_id);
 		const permission = await getPermission(req.user_id, guild_id);
 
-		if (!rights.has("SELF_EDIT_GUILDS") && !permission.has("MANAGE_GUILD"))
+		if (!rights.has("MANAGE_GUILDS") && !permission.has("MANAGE_GUILD"))
 			throw DiscordApiErrors.MISSING_PERMISSIONS.withParams(
-				"SELF_EDIT_GUILDS",
+				"MANAGE_GUILDS",
 			);
 
 		var guild = await Guild.findOneOrFail({