diff --git a/lib/types.ts b/lib/types.ts index 257568d551..b5d9ac4663 100644 --- a/lib/types.ts +++ b/lib/types.ts @@ -142,13 +142,15 @@ interface EventTypeExtended extends Omit eventType.id); + if (!userEventTypes.includes(safeQuery.data.id)) res.status(401).json({ message: "Unauthorized" }); else { switch (method) {