can't edit bonks, but allow other edits
This commit is contained in:
parent
d015e8ae38
commit
60f301cc09
1 changed files with 2 additions and 2 deletions
4
web.go
4
web.go
|
|
@ -902,8 +902,8 @@ func edithonkpage(w http.ResponseWriter, r *http.Request) {
|
||||||
user, _ := butwhatabout(u.Username)
|
user, _ := butwhatabout(u.Username)
|
||||||
xid := r.FormValue("xid")
|
xid := r.FormValue("xid")
|
||||||
honk := getxonk(u.UserID, xid)
|
honk := getxonk(u.UserID, xid)
|
||||||
if honk == nil || honk.Honker != user.URL || honk.What != "honk" {
|
if honk == nil || honk.Honker != user.URL || honk.What == "bonk" {
|
||||||
log.Printf("no edit")
|
http.Error(w, "no editing that please", http.StatusInternalServerError)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue