Only enabled!

This commit is contained in:
shamoon committed 2026-11-11 21:42:02 -08:00
1 parent 62648fffe8
commit a2d31f9b59
5 files changed
+9

No files matched your search

+2
View File
@@ -2167,6 +2167,8 @@ class BulkEditSerializer(
workflow = Workflow.objects.get(id=parameters["workflow"])
except (Workflow.DoesNotExist, ValueError, TypeError):
raise serializers.ValidationError("Workflow does not exist")
if not workflow.enabled:
raise serializers.ValidationError("Workflow is not enabled")
if not workflow.triggers.filter(
type=WorkflowTrigger.WorkflowTriggerType.MANUAL,
).exists():