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 {