Git: Update experimental workflow POC (#60049)

This commit is contained in:
Ryan McKinley
2022-12-08 13:57:33 -05:00
committed by GitHub
parent 29d2f86955
commit b2c4af16d7
6 changed files with 12 additions and 10 deletions
+2
View File
@@ -245,6 +245,8 @@ func ApplyAdminIA(root *NavTreeRoot) {
adminNodeLinks = append(adminNodeLinks, accessNode)
}
adminNodeLinks = AppendIfNotNil(adminNodeLinks, root.FindById("storage"))
if len(adminNodeLinks) > 0 {
orgAdminNode.Children = adminNodeLinks
} else {
+1 -2
View File
@@ -592,8 +592,7 @@ func (s *standardStorageService) getWorkflowOptions(ctx context.Context, user *u
Workflows: make([]workflowInfo, 0),
}
scope, _ := splitFirstSegment(path)
root, _ := s.tree.getRoot(user.OrgID, scope)
root, _ := s.tree.getRoot(user.OrgID, path)
if root == nil {
return options, fmt.Errorf("can not read")
}