From 84b0eec0694ab2bed753ca771b49627075c21550 Mon Sep 17 00:00:00 2001 From: Lea Date: Fri, 25 Aug 2023 09:16:36 +0200 Subject: [PATCH] fix: add missing permission check --- lib/actions.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/actions.ts b/lib/actions.ts index 11b6886..ce8e82a 100644 --- a/lib/actions.ts +++ b/lib/actions.ts @@ -612,6 +612,8 @@ export async function updateServerOwner(serverId: string, userId: string) { } export async function addServerMember(serverId: string, userId: string, withEvent: boolean) { + await checkPermission("servers/update/add-member", { serverId, userId, withEvent }); + const server = await mongo() .db("revolt") .collection("servers")