Skip to content

Commit

Permalink
Merge pull request #2881 from actiontech/fix_workflow_op_permission
Browse files Browse the repository at this point in the history
Fix workflow op permission
  • Loading branch information
BugsGuru authored Jan 17, 2025
2 parents 9a840e4 + 38c13fb commit 70e1458
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 483 deletions.
4 changes: 2 additions & 2 deletions sqle/api/controller/v1/project_permission.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func CheckCurrentUserCanViewWorkflow(c echo.Context, projectUid string, workflow
}

s := model.GetStorage()
access, err := s.UserCanAccessWorkflow(userId, workflow.WorkflowId)
access, err := s.UserCanViewWorkflow(userId, workflow.WorkflowId)
if err != nil {
return err
}
Expand Down Expand Up @@ -147,7 +147,7 @@ func checkCurrentUserCanViewTask(c echo.Context, task *model.Task, ops []dmsV1.O
return errors.NewTaskNoExistOrNoAccessErr()
}

access, err := s.UserCanAccessWorkflow(userId, workflowId)
access, err := s.UserCanViewWorkflow(userId, workflowId)
if err != nil {
return err
}
Expand Down
Loading

0 comments on commit 70e1458

Please sign in to comment.