changeset 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 6f9f28c3bcf4
children 89b6978afc58 232377c112de
files pkg/controllers/routes.go
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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)