We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 152e942 commit 5e9d8e1Copy full SHA for 5e9d8e1
apps/sim/lib/copilot/tools/server/blocks/get-block-config.ts
@@ -359,7 +359,8 @@ export const getBlockConfigServerTool: BaseServerTool<
359
const permissionConfig = context?.userId ? await getUserPermissionConfig(context.userId) : null
360
const allowedIntegrations = permissionConfig?.allowedIntegrations
361
362
- if (allowedIntegrations !== null && !allowedIntegrations?.includes(blockType)) {
+ // Only restrict if allowedIntegrations is explicitly set (not null/undefined)
363
+ if (allowedIntegrations && !allowedIntegrations.includes(blockType)) {
364
throw new Error(`Block "${blockType}" is not available`)
365
}
366
0 commit comments