fix invite right enforcement

This commit is contained in:
binsky 2022-04-09 04:11:10 +02:00 committed by Erkin Alp Güney
parent 4c3eec0b1a
commit 969c99173a

View File

@ -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;