From 4b88da8ff66d5c6f7dd64b2a30de1f30b9209b33 Mon Sep 17 00:00:00 2001 From: mr Date: Tue, 3 Dec 2024 11:57:51 +0100 Subject: [PATCH] debug --- models/workflow/workflow.go | 2 ++ models/workspace/workspace.go | 3 +++ 2 files changed, 5 insertions(+) diff --git a/models/workflow/workflow.go b/models/workflow/workflow.go index 8d8727a..f24fd92 100644 --- a/models/workflow/workflow.go +++ b/models/workflow/workflow.go @@ -108,6 +108,8 @@ func (ao *Workflow) VerifyAuth(peerID string, groups []string) bool { } isAuthorized = shared.VerifyAuth(peerID, groups) } + } else { + isAuthorized = true } return isAuthorized } diff --git a/models/workspace/workspace.go b/models/workspace/workspace.go index ef38853..40172bd 100644 --- a/models/workspace/workspace.go +++ b/models/workspace/workspace.go @@ -1,6 +1,8 @@ package workspace import ( + "fmt" + "cloud.o-forge.io/core/oc-lib/models/collaborative_area/shallow_collaborative_area" "cloud.o-forge.io/core/oc-lib/models/resources" "cloud.o-forge.io/core/oc-lib/models/utils" @@ -21,6 +23,7 @@ func (d *Workspace) GetAccessor(peerID string, groups []string, caller *tools.HT } func (ao *Workspace) VerifyAuth(peerID string, groups []string) bool { + fmt.Println("Workspace.VerifyAuth", ao.Shared) if ao.Shared != "" { shared, code, _ := shallow_collaborative_area.New(tools.COLLABORATIVE_AREA, peerID, groups, nil).LoadOne(ao.Shared) if code != 200 || shared == nil {