Skip to content
Snippets Groups Projects
Commit f27f2000 authored by Tóth Miklós Tibor's avatar Tóth Miklós Tibor :shrug:
Browse files

Fix unbuyable buyable stuff

parent 66730db7
No related branches found
No related tags found
No related merge requests found
Pipeline #25475 passed
...@@ -79,6 +79,10 @@ func NewHandler(w http.ResponseWriter, r *http.Request) { ...@@ -79,6 +79,10 @@ func NewHandler(w http.ResponseWriter, r *http.Request) {
helpers.Logger.Println(err) helpers.Logger.Println(err)
} }
} else if r.Method == "POST" { } else if r.Method == "POST" {
if !prod.Buyable {
errorMsg("Ez a termék jelenleg nem elérhető")
return
}
err := r.ParseForm() err := r.ParseForm()
if err != nil { if err != nil {
errorMsg("Invalid vagy üres form") errorMsg("Invalid vagy üres form")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment