summary refs log tree commit diff
diff options
context:
space:
mode:
authorErkin Alp Güney <erkinalp9035@gmail.com>2022-06-26 14:26:36 +0300
committerGitHub <noreply@github.com>2022-06-26 14:26:36 +0300
commit84b631e9b614e780caace68ad0e815ecd5ef4919 (patch)
treec0cdf9919578a536770c717041988b97a153cd0a
parentUpdate Rights.ts (diff)
downloadserver-84b631e9b614e780caace68ad0e815ecd5ef4919.tar.xz
JOIN_GUILDS is not the right flag there
-rw-r--r--api/src/routes/invites/index.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/src/routes/invites/index.ts b/api/src/routes/invites/index.ts
index 21da2d18..eeafb22a 100644
--- a/api/src/routes/invites/index.ts
+++ b/api/src/routes/invites/index.ts
@@ -13,7 +13,7 @@ router.get("/:code", route({}), async (req: Request, res: Response) => {
 	res.status(200).send(invite);
 });
 
-router.post("/:code", route({right: "JOIN_GUILDS"}), async (req: Request, res: Response) => {
+router.post("/:code", route({right: "USE_MASS_INVITES"}), async (req: Request, res: Response) => {
 	const { code } = req.params;
     const { guild_id } = await Invite.findOneOrFail({ code })
 	const { features } = await Guild.findOneOrFail({ id: guild_id});