Mercurial > gemma
changeset 872:b882b2c796c1 geo-style
Only sys_admin should set the style of an feature.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Sun, 30 Sep 2018 13:58:49 +0200 |
parents | f0b6852c14d1 |
children | ad9272460ef3 |
files | pkg/controllers/routes.go |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/pkg/controllers/routes.go Sun Sep 30 11:49:23 2018 +0200 +++ b/pkg/controllers/routes.go Sun Sep 30 13:58:49 2018 +0200 @@ -137,7 +137,7 @@ // Geo styling api.Handle("/geo/style/{feature}", - any(http.HandlerFunc(uploadStyle))).Methods(http.MethodPost) + sysAdmin(http.HandlerFunc(uploadStyle))).Methods(http.MethodPost) // Token handling: Login/Logout. api.HandleFunc("/login", login).