BUG: Fixed issue with wrong owner of workflow for file uploads
This commit is contained in:
@@ -2258,7 +2258,10 @@ func saveWorkflow(resp http.ResponseWriter, request *http.Request) {
|
|||||||
// FIXME: Is this too drastic? May lead to issues in the future.
|
// FIXME: Is this too drastic? May lead to issues in the future.
|
||||||
// Should maybe make a copy for the old org.
|
// Should maybe make a copy for the old org.
|
||||||
if workflow.OrgId != user.ActiveOrg.Id {
|
if workflow.OrgId != user.ActiveOrg.Id {
|
||||||
|
log.Printf("[WARNING] Editing workflow to be owned by %s", user.ActiveOrg.Id)
|
||||||
workflow.OrgId = user.ActiveOrg.Id
|
workflow.OrgId = user.ActiveOrg.Id
|
||||||
|
workflow.ExecutingOrg = user.ActiveOrg
|
||||||
|
workflow.Org = append(workflow.Org, user.ActiveOrg)
|
||||||
}
|
}
|
||||||
|
|
||||||
err = setWorkflow(ctx, workflow, fileId)
|
err = setWorkflow(ctx, workflow, fileId)
|
||||||
|
|||||||
+1
-1
@@ -16,7 +16,7 @@ services:
|
|||||||
depends_on:
|
depends_on:
|
||||||
- backend
|
- backend
|
||||||
backend:
|
backend:
|
||||||
#build: ./backend
|
build: ./backend
|
||||||
image: ghcr.io/frikky/shuffle-backend:0.8.3
|
image: ghcr.io/frikky/shuffle-backend:0.8.3
|
||||||
container_name: shuffle-backend
|
container_name: shuffle-backend
|
||||||
hostname: ${BACKEND_HOSTNAME}
|
hostname: ${BACKEND_HOSTNAME}
|
||||||
|
|||||||
Reference in New Issue
Block a user