diff --git a/internal/home/profilehttp.go b/internal/home/profilehttp.go index 42392501..74a7b2ed 100644 --- a/internal/home/profilehttp.go +++ b/internal/home/profilehttp.go @@ -48,7 +48,7 @@ type profileJSON struct { func (web *webAPI) handleGetProfile(w http.ResponseWriter, r *http.Request) { var name string - if !(web.auth.isUserless || web.auth.isGLiNet) { + if !web.auth.isGLiNet && !web.auth.isUserless { u, ok := webUserFromContext(r.Context()) if !ok { w.WriteHeader(http.StatusUnauthorized)