mirror of
https://git.vectorsigma.ru/public/AdGuardHome.git
synced 2026-08-03 21:39:38 +00:00
home: imp code
This commit is contained in:
@@ -48,7 +48,7 @@ type profileJSON struct {
|
|||||||
func (web *webAPI) handleGetProfile(w http.ResponseWriter, r *http.Request) {
|
func (web *webAPI) handleGetProfile(w http.ResponseWriter, r *http.Request) {
|
||||||
var name string
|
var name string
|
||||||
|
|
||||||
if !(web.auth.isUserless || web.auth.isGLiNet) {
|
if !web.auth.isGLiNet && !web.auth.isUserless {
|
||||||
u, ok := webUserFromContext(r.Context())
|
u, ok := webUserFromContext(r.Context())
|
||||||
if !ok {
|
if !ok {
|
||||||
w.WriteHeader(http.StatusUnauthorized)
|
w.WriteHeader(http.StatusUnauthorized)
|
||||||
|
|||||||
Reference in New Issue
Block a user