Merge pull request #871 from gravitl/hotfix_v0.11.1_IsComms_filter

remove iscomms filter on getnodes
This commit is contained in:
Alex Feiszli 2022-03-07 20:33:34 -05:00 committed by GitHub
commit 605d37eb65
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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) {