diff options
author | Erkin Alp Güney <erkinalp9035@gmail.com> | 2022-06-26 14:26:36 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-26 14:26:36 +0300 |
commit | 84b631e9b614e780caace68ad0e815ecd5ef4919 (patch) | |
tree | c0cdf9919578a536770c717041988b97a153cd0a | |
parent | Update Rights.ts (diff) | |
download | server-84b631e9b614e780caace68ad0e815ecd5ef4919.tar.xz |
JOIN_GUILDS is not the right flag there
-rw-r--r-- | api/src/routes/invites/index.ts | 2 |
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}); |