correct right name

This commit is contained in:
Erkin Alp Güney 2022-04-08 17:30:55 +03:00 committed by GitHub
parent a8c57a878d
commit 4c3eec0b1a

View File

@ -19,7 +19,7 @@ export interface InviteCreateSchema {
target_user_type?: number; target_user_type?: number;
} }
router.post("/", route({ body: "InviteCreateSchema", permission: "CREATE_INSTANT_INVITE", right: "CREATE_INSTANT_INVITE" }), router.post("/", route({ body: "InviteCreateSchema", permission: "CREATE_INVITES", right: "CREATE_INSTANT_INVITE" }),
async (req: Request, res: Response) => { async (req: Request, res: Response) => {
const { user_id } = req; const { user_id } = req;
const { channel_id } = req.params; const { channel_id } = req.params;