summary refs log tree commit diff
path: root/api/src/routes/channels/#channel_id
diff options
context:
space:
mode:
authorbinsky <timo@binsky.org>2022-04-09 04:11:10 +0200
committerErkin Alp Güney <erkinalp9035@gmail.com>2022-04-09 08:30:29 +0300
commit596c60e010a8372c729306476c0734e86f990ad9 (patch)
tree6367d01e835da7a4a081cb8bb0851262c695f224 /api/src/routes/channels/#channel_id
parentcorrect right name (diff)
downloadserver-596c60e010a8372c729306476c0734e86f990ad9.tar.xz
fix invite right enforcement
Diffstat (limited to 'api/src/routes/channels/#channel_id')
-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 6367a8b6..9c361164 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_INVITES", right: "CREATE_INSTANT_INVITE" }),
+router.post("/", route({ body: "InviteCreateSchema", permission: "CREATE_INSTANT_INVITE", right: "CREATE_INVITES" }),
 			async (req: Request, res: Response) => {
 	const { user_id } = req;
 	const { channel_id } = req.params;