BUG: Fixed bug in app sdk for OpenAPI lists
This commit is contained in:
@@ -2188,8 +2188,6 @@ func saveWorkflow(resp http.ResponseWriter, request *http.Request) {
|
||||
|
||||
// Here to check access rights
|
||||
ctx := context.Background()
|
||||
log.Println("GetWorkflow start")
|
||||
|
||||
tmpworkflow, err := getWorkflow(ctx, fileId)
|
||||
if err != nil {
|
||||
log.Printf("Failed getting the workflow locally (save workflow): %s", err)
|
||||
@@ -2198,8 +2196,6 @@ func saveWorkflow(resp http.ResponseWriter, request *http.Request) {
|
||||
return
|
||||
}
|
||||
|
||||
log.Println("GetWorkflow end")
|
||||
|
||||
// FIXME - have a check for org etc too..
|
||||
if user.Id != tmpworkflow.Owner && user.Role != "admin" {
|
||||
log.Printf("Wrong user (%s) for workflow %s (save)", user.Username, tmpworkflow.ID)
|
||||
|
||||
Reference in New Issue
Block a user