Mercurial > gemma
diff pkg/controllers/routes.go @ 5481:38640b20360d
Allow /data/reports for all users.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Thu, 19 Aug 2021 22:12:59 +0200 |
parents | 8e30b926b94d |
children | 2b862190aee4 |
line wrap: on
line diff
--- a/pkg/controllers/routes.go Thu Aug 19 17:42:18 2021 +0200 +++ b/pkg/controllers/routes.go Thu Aug 19 22:12:59 2021 +0200 @@ -336,7 +336,7 @@ // Handler for reporting api.Handle("/data/reports", - waterwayAdmin(&mw.JSONHandler{ + any(&mw.JSONHandler{ Handle: listReports, NoConn: true, })).Methods(http.MethodGet)