From 771cd370b64caf39ac4315aef25a75b173c94c85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E6=B6=9B?= Date: Sat, 27 Aug 2022 20:06:48 +0800 Subject: [PATCH] =?UTF-8?q?fix(park):=E6=94=BE=E5=BC=80=E5=AF=B9=E6=8C=87?= =?UTF-8?q?=E5=AE=9A=E7=94=A8=E6=88=B7=E4=B8=8B=E5=9B=AD=E5=8C=BA=E7=9A=84?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E6=8E=A5=E5=8F=A3=E7=9A=84=E8=AE=BF=E9=97=AE?= =?UTF-8?q?=E6=9D=83=E9=99=90=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controller/park.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controller/park.go b/controller/park.go index 08fd17e..6cf64a5 100644 --- a/controller/park.go +++ b/controller/park.go @@ -16,7 +16,7 @@ import ( func InitializeParkController(router *gin.Engine) { router.GET("/parks", security.EnterpriseAuthorize, listAllParksUnderSessionUser) - router.GET("/parks/:uid", security.ManagementAuthorize, listAllParksUnderSpecificUser) + router.GET("/parks/:uid", security.MustAuthenticated, listAllParksUnderSpecificUser) router.POST("/park", security.EnterpriseAuthorize, createNewPark) router.PUT("/park/:pid", security.EnterpriseAuthorize, modifyPark) router.GET("/park/:pid", security.EnterpriseAuthorize, fetchParkDetail)