home: imp code
Some checks failed
build / test (macOS-latest) (push) Has been cancelled
build / test (ubuntu-latest) (push) Has been cancelled
build / test (windows-latest) (push) Has been cancelled
lint / go-lint (push) Has been cancelled
lint / eslint (push) Has been cancelled
build / build-release (push) Has been cancelled
build / notify (push) Has been cancelled
lint / notify (push) Has been cancelled

This commit is contained in:
Stanislav Chzhen
2025-08-26 15:47:07 +03:00
parent aef012ed02
commit bdc76b1b10

View File

@@ -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)