From bdc76b1b102ce3341910c3def373110aa24cc556 Mon Sep 17 00:00:00 2001 From: Stanislav Chzhen Date: Tue, 26 Aug 2025 15:47:07 +0300 Subject: [PATCH] home: imp code --- internal/home/profilehttp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)