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 | 596c60e010a8372c729306476c0734e86f990ad9 (patch) | |
tree | 6367d01e835da7a4a081cb8bb0851262c695f224 | |
parent | correct right name (diff) | |
download | server-596c60e010a8372c729306476c0734e86f990ad9.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; |