diff options
author | Erkin Alp Güney <erkinalp9035@gmail.com> | 2022-04-08 17:30:55 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-08 17:30:55 +0300 |
commit | 4c3eec0b1a0e23d170b773b3bc6186c4a9797a45 (patch) | |
tree | 2fc94ea487f8edfa8bdffa6df3b47fa17a7c039f | |
parent | invite right enforced (diff) | |
download | server-4c3eec0b1a0e23d170b773b3bc6186c4a9797a45.tar.xz |
correct right name
-rw-r--r-- | api/src/routes/channels/#channel_id/invites.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api/src/routes/channels/#channel_id/invites.ts b/api/src/routes/channels/#channel_id/invites.ts index 208a0705..6367a8b6 100644 --- a/api/src/routes/channels/#channel_id/invites.ts +++ b/api/src/routes/channels/#channel_id/invites.ts @@ -19,7 +19,7 @@ export interface InviteCreateSchema { target_user_type?: number; } -router.post("/", route({ body: "InviteCreateSchema", permission: "CREATE_INSTANT_INVITE", right: "CREATE_INSTANT_INVITE" }), +router.post("/", route({ body: "InviteCreateSchema", permission: "CREATE_INVITES", right: "CREATE_INSTANT_INVITE" }), async (req: Request, res: Response) => { const { user_id } = req; const { channel_id } = req.params; |