summary refs log tree commit diff
path: root/api
diff options
context:
space:
mode:
authorErkin Alp Güney <erkinalp9035@gmail.com>2022-04-08 17:30:55 +0300
committerGitHub <noreply@github.com>2022-04-08 17:30:55 +0300
commit271574bb384a4d8a08f0058a453abd7839707b32 (patch)
treed2927fb905ed1afb728083c4a3b3e41cfd530cdf /api
parentinvite right enforced (diff)
downloadserver-271574bb384a4d8a08f0058a453abd7839707b32.tar.xz
correct right name
Diffstat (limited to 'api')
-rw-r--r--api/src/routes/channels/#channel_id/invites.ts2
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;