From edc835c5859ebcd8f01a160d9185387434614094 Mon Sep 17 00:00:00 2001 From: amhudson Date: Tue, 6 Jun 2023 11:04:55 -0500 Subject: [PATCH] remove validation --- src/main/java/io/boomerang/controller/WorkflowController.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main/java/io/boomerang/controller/WorkflowController.java b/src/main/java/io/boomerang/controller/WorkflowController.java index ee0e4992..e129828b 100644 --- a/src/main/java/io/boomerang/controller/WorkflowController.java +++ b/src/main/java/io/boomerang/controller/WorkflowController.java @@ -118,9 +118,7 @@ public WorkflowSummary duplicateWorkflow(@PathVariable String workFlowId, public WorkflowSummary insertWorkflow(@RequestBody WorkflowSummary workflowSummaryEntity) { if (workflowSummaryEntity.getFlowTeamId() != null) { userValidationService.validateUserForTeam(workflowSummaryEntity.getFlowTeamId()); - } else { - userValidationService.validateUserById(workflowSummaryEntity.getOwnerUserId()); - } + } workflowSummaryEntity.setStatus(WorkflowStatus.active); return workflowService.saveWorkflow(workflowSummaryEntity); }