浏览代码

remove iscomms filter on getnodes

afeiszli 3 年之前
父节点
当前提交
33f7ed52a3
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      controllers/node.go

+ 1 - 1
controllers/node.go

@@ -302,7 +302,7 @@ func getAllNodes(w http.ResponseWriter, r *http.Request) {
 	//Return all the nodes in JSON format
 	logger.Log(3, r.Header.Get("user"), "fetched all nodes they have access to")
 	w.WriteHeader(http.StatusOK)
-	json.NewEncoder(w).Encode(filterCommsNodes(nodes))
+	json.NewEncoder(w).Encode(nodes)
 }
 
 func getUsersNodes(user models.User) ([]models.Node, error) {