From 140dbb39180a87b6828454ed7f346a865120d191 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Dachary?= Date: Sun, 26 Nov 2023 06:33:51 +0100 Subject: [PATCH] Revert "enforce reqRepoReader(unit.TypeIssues) POST /repos/{owner}/{repo}/issues" This reverts commit 6b4cb070cce6950c034d2fdbd3497f7cf69d0d37. --- routers/api/v1/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routers/api/v1/api.go b/routers/api/v1/api.go index 092c610553..90adeee809 100644 --- a/routers/api/v1/api.go +++ b/routers/api/v1/api.go @@ -1154,7 +1154,7 @@ func Routes(ctx gocontext.Context) *web.Route { m.Group("/{username}/{reponame}", func() { m.Group("/issues", func() { m.Combo("").Get(repo.ListIssues). - Post(reqToken(), mustNotBeArchived, bind(api.CreateIssueOption{}), reqRepoReader(unit.TypeIssues), repo.CreateIssue) + Post(reqToken(), mustNotBeArchived, bind(api.CreateIssueOption{}), repo.CreateIssue) m.Get("/pinned", reqRepoReader(unit.TypeIssues), repo.ListPinnedIssues) m.Group("/comments", func() { m.Get("", repo.ListRepoIssueComments)