From c397010e07e041515e3b6f7d80ab10da8b1bcd65 Mon Sep 17 00:00:00 2001 From: e <747342561@qq.com> Date: Thu, 21 May 2020 16:35:42 +0800 Subject: [PATCH] mod ignSignIn to reqSignIn for get attachments --- routers/routes/routes.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routers/routes/routes.go b/routers/routes/routes.go index b14cf22f7..17974aa3f 100644 --- a/routers/routes/routes.go +++ b/routers/routes/routes.go @@ -508,7 +508,7 @@ func RegisterRoutes(m *macaron.Macaron) { m.Group("", func() { m.Get("/:username", user.Profile) m.Get("/attachments/:uuid", repo.GetAttachment) - }, ignSignIn) + }, reqSignIn) m.Group("/attachments", func() { m.Post("", repo.UploadAttachment)