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.

Fix integration permissions check

Steven Teya97425b64a33
diff --git a/apps/web/lib/auth/workspace.ts b/apps/web/lib/auth/workspace.ts
index 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