# HG changeset patch # User Sascha L. Teichmann # Date 1565602527 -7200 # Node ID 0601143ffd02fff47e5416f17bba5985e13b438a # Parent 2ac52d89619e02cee918b23a0d67777200704eaa The system stetting should only be setable by a the system admin. diff -r 2ac52d89619e -r 0601143ffd02 pkg/controllers/routes.go --- a/pkg/controllers/routes.go Wed Aug 07 15:23:41 2019 +0200 +++ b/pkg/controllers/routes.go Mon Aug 12 11:35:27 2019 +0200 @@ -83,7 +83,7 @@ Handle: getSystemSettings, })).Methods(http.MethodGet) - api.Handle("/system/settings", any(&JSONHandler{ + api.Handle("/system/settings", sysAdmin(&JSONHandler{ Input: func(*http.Request) interface{} { return &map[string]string{} }, Handle: setSystemSettings, })).Methods(http.MethodPut)