Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

we should do plan check for Webhooks API too

Kiran K1bb3cd68579c
diff --git a/apps/web/lib/auth/workspace.ts b/apps/web/lib/auth/workspace.ts
index 286c5badda..371db71be4 100644
--- a/apps/web/lib/auth/workspace.ts
+++ b/apps/web/lib/auth/workspace.ts
@@ -337,6 +337,9 @@ export const withWorkspace = (
const url = new URL(req.url || "", API_DOMAIN);
+ // TODO:
+ // We should do plan check for Webhooks API too
+
// plan checks
// special scenario – /events API is available for conversionEnabled workspaces
// (even if they're on a Pro plan)