Skip to content

Commit d0a3cd3

Browse files
committed
fix(access-control): normalize blockType to lowercase before env allowlist check
1 parent 5854ca4 commit d0a3cd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/sim/ee/access-control/utils/permission-check.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ export async function validateBlockType(
161161
}
162162

163163
const envAllowlist = getAllowedIntegrationsFromEnv()
164-
if (envAllowlist !== null && !envAllowlist.includes(blockType)) {
164+
if (envAllowlist !== null && !envAllowlist.includes(blockType.toLowerCase())) {
165165
logger.warn('Integration blocked by env allowlist', { blockType })
166166
throw new IntegrationNotAllowedError(blockType, 'blocked by server ALLOWED_INTEGRATIONS policy')
167167
}

0 commit comments

Comments
 (0)