mirror of
https://github.com/optim-enterprises-bv/databunker.git
synced 2025-11-02 19:07:46 +00:00
Update conf.go
This commit is contained in:
@@ -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) {
|
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
|
return
|
||||||
}
|
}
|
||||||
resultJSON, _ := json.Marshal(e.conf)
|
resultJSON, _ := json.Marshal(e.conf)
|
||||||
|
|||||||
Reference in New Issue
Block a user