feat: add namespace-based access control with read/write permissions
This commit is contained in:
@@ -83,7 +83,8 @@ func PrintNodes(w io.Writer, svc service.NodeService, nodes []*models.Node, json
|
||||
for _, id := range ns_rel_node_ids {
|
||||
ns_rel_node, err := svc.GetByID(id)
|
||||
if err != nil {
|
||||
fmt.Fprintf(w, "err: %v", err)
|
||||
ns_rel_node_titles = append(ns_rel_node_titles, id)
|
||||
continue
|
||||
}
|
||||
ns_rel_node_titles = append(ns_rel_node_titles, ns_rel_node.Title)
|
||||
}
|
||||
@@ -133,7 +134,8 @@ func PrintNode(w io.Writer, svc service.NodeService, n *models.Node, jsonOut boo
|
||||
for _, id := range rel_node_ids {
|
||||
rel_node, err := svc.GetByID(id)
|
||||
if err != nil {
|
||||
fmt.Fprintf(w, "err: %v", err)
|
||||
fmt.Fprintf(w, " %s %s\n", relIcons[relType], cDim.Sprint(id))
|
||||
continue
|
||||
}
|
||||
fmt.Fprintf(w, " %s %s\n", relIcons[relType], rel_node.Title)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user