Skip to content

Commit 5e9d8e1

Browse files
committed
Stuff
1 parent 152e942 commit 5e9d8e1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/sim/lib/copilot/tools/server/blocks/get-block-config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,8 @@ export const getBlockConfigServerTool: BaseServerTool<
359359
const permissionConfig = context?.userId ? await getUserPermissionConfig(context.userId) : null
360360
const allowedIntegrations = permissionConfig?.allowedIntegrations
361361

362-
if (allowedIntegrations !== null && !allowedIntegrations?.includes(blockType)) {
362+
// Only restrict if allowedIntegrations is explicitly set (not null/undefined)
363+
if (allowedIntegrations && !allowedIntegrations.includes(blockType)) {
363364
throw new Error(`Block "${blockType}" is not available`)
364365
}
365366

0 commit comments

Comments
 (0)