diff options
author | binsky <timo@binsky.org> | 2022-04-09 04:11:10 +0200 |
---|---|---|
committer | Erkin Alp Güney <erkinalp9035@gmail.com> | 2022-04-09 08:30:29 +0300 |
commit | 969c99173a814443096b16e9674f4dd77b374f9a (patch) | |
tree | 8462b29ff29aefef6e8794c6820c70316f799aa7 | |
parent | correct right name (diff) | |
download | server-969c99173a814443096b16e9674f4dd77b374f9a.tar.xz |
fix invite right enforcement
-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 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; |