mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2025-10-26 11:27:18 +00:00
home: imp code
This commit is contained in:
parent
aef012ed02
commit
bdc76b1b10
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user