all repos — honk @ 58bf6f26077efe66d531e99222cbc5a26b775832

my fork of honk

if it's not our honk, don't show controls
Ted Unangst tedu@tedunangst.com
Tue, 09 Jul 2019 23:31:57 -0400
commit

58bf6f26077efe66d531e99222cbc5a26b775832

parent

41880bf8f0c1c4ff0c34331c01fd725bd449d63f

1 files changed, 4 insertions(+), 1 deletions(-)

jump to
M honk.gohonk.go

@@ -598,8 +598,11 @@ http.NotFound(w, r)

return } u := login.GetUserInfo(r) + if u != nil && u.UserID != user.ID { + u = nil + } if !h.Public { - if u == nil || u.UserID != h.UserID { + if u == nil { http.NotFound(w, r) return