The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Fix integration permissions check
Steven Teya97425b64a33
diff --git a/apps/web/lib/auth/workspace.ts b/apps/web/lib/auth/workspace.tsindex 9527092cce..2d235a4922 100644--- a/apps/web/lib/auth/workspace.ts+++ b/apps/web/lib/auth/workspace.ts@@ -324,15 +324,6 @@ export const withWorkspace = (permissions = mapScopesToPermissions(tokenScopes).filter((p) =>permissions.includes(p),);-- // Prevent integration tokens from accessing API endpoints without explicit permissions- if (token.installationId && requiredPermissions.length === 0) {- throw new DubApiError({- code: "forbidden",- message:- "You don't have the necessary permissions to complete this request.",- });- }}// Check user has permission to make the action