Fixed api GET /nodes permission, can be access by Reporter

pull/106/head
Doflatango 6 years ago
parent 73fef97547
commit f2e38132e0

@ -87,7 +87,7 @@ func initRouters() (s *http.Server, err error) {
h = NewAuthHandler(jobLogHandler.GetDetail, cronsun.Developer)
subrouter.Handle("/log/{id}", h).Methods("GET")
h = NewAuthHandler(nodeHandler.GetNodes, cronsun.Developer)
h = NewAuthHandler(nodeHandler.GetNodes, cronsun.Reporter)
subrouter.Handle("/nodes", h).Methods("GET")
h = NewAuthHandler(nodeHandler.DeleteNode, cronsun.Developer)
subrouter.Handle("/node/{ip}", h).Methods("DELETE")

Loading…
Cancel
Save