can't edit bonks, but allow other edits
Ted Unangst tedu@tedunangst.com
Wed, 09 Oct 2019 16:12:46 -0400
1 files changed,
2 insertions(+),
2 deletions(-)
jump to
M
web.go
→
web.go
@@ -902,8 +902,8 @@ u := login.GetUserInfo(r)
user, _ := butwhatabout(u.Username) xid := r.FormValue("xid") honk := getxonk(u.UserID, xid) - if honk == nil || honk.Honker != user.URL || honk.What != "honk" { - log.Printf("no edit") + if honk == nil || honk.Honker != user.URL || honk.What == "bonk" { + http.Error(w, "no editing that please", http.StatusInternalServerError) return }