From c20f4f3dfb39eaa8ca5319e503fe7ce5714aabbf Mon Sep 17 00:00:00 2001 From: Vikhyath Mondreti Date: Mon, 15 Dec 2025 13:10:34 -0800 Subject: [PATCH] fix(wand): should not be able to use wand ui without write/admin perms --- .../components/editor/components/sub-block/sub-block.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/sub-block.tsx b/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/sub-block.tsx index 22d1e16a47..395c4c61d6 100644 --- a/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/sub-block.tsx +++ b/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/sub-block.tsx @@ -157,6 +157,7 @@ const renderLabel = ( isWandEnabled: boolean isPreview: boolean isStreaming: boolean + disabled: boolean onSearchClick: () => void onSearchBlur: () => void onSearchChange: (value: string) => void @@ -175,6 +176,7 @@ const renderLabel = ( isWandEnabled, isPreview, isStreaming, + disabled, onSearchClick, onSearchBlur, onSearchChange, @@ -208,7 +210,7 @@ const renderLabel = ( {/* Wand inline prompt */} - {isWandEnabled && !isPreview && ( + {isWandEnabled && !isPreview && !disabled && (
{!isSearchActive ? (