From 94803f820af141698b263f9c8f0731932d5b559d Mon Sep 17 00:00:00 2001 From: mr Date: Tue, 19 Nov 2024 14:28:23 +0100 Subject: [PATCH] hard stuff --- models/workflow/workflow_mongo_accessor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/workflow/workflow_mongo_accessor.go b/models/workflow/workflow_mongo_accessor.go index 4ab4314..c30906e 100644 --- a/models/workflow/workflow_mongo_accessor.go +++ b/models/workflow/workflow_mongo_accessor.go @@ -164,7 +164,7 @@ func (wfa *workflowMongoAccessor) book(id string, realData *Workflow, execs []*w * share is a function that shares a workflow to the peers if the workflow is shared */ func (wfa *workflowMongoAccessor) share(realData *Workflow, delete bool, caller *tools.HTTPCaller) { - if realData == nil || realData.Shared == nil || len(realData.Shared) == 0 || caller.Disabled { // no shared no sharing + if realData == nil || realData.Shared == nil || len(realData.Shared) == 0 || caller == nil || caller.Disabled { // no shared no sharing return } for _, sharedID := range realData.Shared { // loop through the shared ids