changeset 4800:37429e50a74f

Allow import log export for waterwayAdmin.
author Sascha Wilde <wilde@intevation.de>
date Fri, 25 Oct 2019 18:52:11 +0200
parents f32d086b5dbf
children b23414a3b333
files pkg/controllers/routes.go
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pkg/controllers/routes.go	Fri Oct 25 18:40:37 2019 +0200
+++ b/pkg/controllers/routes.go	Fri Oct 25 18:52:11 2019 +0200
@@ -290,7 +290,7 @@
 		Handle: listImports,
 	})).Methods(http.MethodGet)
 
-	api.Handle("/imports/export", sysAdmin(
+	api.Handle("/imports/export", waterwayAdmin(
 		mw.DBConn(http.HandlerFunc(exportImports)))).Methods(http.MethodGet)
 
 	api.Handle("/imports/{id:[0-9]+}", waterwayAdmin(&mw.JSONHandler{