Update conf.go

This commit is contained in:
Yuli
2025-02-20 16:41:58 +02:00
committed by GitHub
parent fd2190e969
commit a41b4fffb8

View File

@@ -35,7 +35,7 @@ func (e mainEnv) cookieSettings(w http.ResponseWriter, r *http.Request, ps httpr
}
func (e mainEnv) configurationDump(w http.ResponseWriter, r *http.Request, ps httprouter.Params) {
if e.EnforceAuth(w, r, nil) == "" {
if e.EnforceAdmin(w, r, nil) == "" {
return
}
resultJSON, _ := json.Marshal(e.conf)