summary refs log tree commit diff
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
commit969c99173a814443096b16e9674f4dd77b374f9a (patch)
tree8462b29ff29aefef6e8794c6820c70316f799aa7
parentcorrect right name (diff)
downloadserver-969c99173a814443096b16e9674f4dd77b374f9a.tar.xz
fix invite right enforcement
-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;