home: imp code

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)