diff --git a/src/management-system-v2/app/(dashboard)/[environmentId]/processes/[processId]/modeler-toolbar.tsx b/src/management-system-v2/app/(dashboard)/[environmentId]/processes/[processId]/modeler-toolbar.tsx
index d01a6d1d5..03851248d 100644
--- a/src/management-system-v2/app/(dashboard)/[environmentId]/processes/[processId]/modeler-toolbar.tsx
+++ b/src/management-system-v2/app/(dashboard)/[environmentId]/processes/[processId]/modeler-toolbar.tsx
@@ -297,11 +297,15 @@ const ModelerToolbar = ({
)) ||
- (bpmnIs(selectedElement, 'bpmn:ScriptTask') && (
-
- } onClick={() => setShowScriptTaskEditor(true)} />
-
- )))}
+ (process.env.NEXT_PUBLIC_ENABLE_EXECUTION &&
+ bpmnIs(selectedElement, 'bpmn:ScriptTask') && (
+
+ }
+ onClick={() => setShowScriptTaskEditor(true)}
+ />
+
+ )))}