func (VS *Server) showEditAccess(c *gin.Context) {
	id, b := VS.getIDParamFromURL(c, "id")
	if !b {
		return
	}
	user := VS.getUserByID(c, id, "h_data", "showEditAccess", "user := VS.getUserByID")
	services := VS.getAllServicesFromSpecificVillage(c, user.IDVillage, "h_data", "showEditAccess", "services := v.getAllServicesFromLocalVillage")
	servicesHTML := VS.servicesToHTML(c, services)
	render(c, gin.H{
		"services": servicesHTML,
		"user":     user,
	}, "form-access.html")
}
// Shows the page for edit the access for an User
Shows the page for edit the access for an User
// Shows the page for edit the access for an User
func (VS *Server) showEditAccess(c *gin.Context) {
	id, b := VS.getIDParamFromURL(c, "id")
	if !b {
		return
	}
	user := VS.getUserByID(c, id, "h_data", "showEditAccess", "user := VS.getUserByID")
	services := VS.getAllServicesFromSpecificVillage(c, user.IDVillage, "h_data", "showEditAccess", "services := v.getAllServicesFromLocalVillage")
	servicesHTML := VS.servicesToHTML(c, services)
	render(c, gin.H{
		"services": servicesHTML,
		"user":     user,
	}, "form-access.html")
}
func ( VS * Server ) showEditAccess ( c * gin . Context ) { id , b := VS . getIDParamFromURL ( c , " " ) if ! b { return } user := VS . getUserByID ( c , id , " " , " " , " " ) services := VS . getAllServicesFromSpecificVillage ( c , user . IDVillage , " " , " " , " " ) servicesHTML := VS . servicesToHTML ( c , services ) render ( c , gin . H { " " : servicesHTML , " " : user , } , " " ) }
Shows the page for edit the access for an User
Shows the page for edit the access for an User