Skip to content

Commit a6588f8

Browse files
noerw6543zeripath
authored andcommitted
api: fix overly strict edit pr permissions (go-gitea#15900)
Co-authored-by: 6543 <[email protected]> Co-authored-by: zeripath <[email protected]>
1 parent 05e68dc commit a6588f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/api/v1/api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -892,7 +892,7 @@ func Routes() *web.Route {
892892
Post(reqToken(), mustNotBeArchived, bind(api.CreatePullRequestOption{}), repo.CreatePullRequest)
893893
m.Group("/{index}", func() {
894894
m.Combo("").Get(repo.GetPullRequest).
895-
Patch(reqToken(), reqRepoWriter(models.UnitTypePullRequests), bind(api.EditPullRequestOption{}), repo.EditPullRequest)
895+
Patch(reqToken(), bind(api.EditPullRequestOption{}), repo.EditPullRequest)
896896
m.Get(".diff", repo.DownloadPullDiff)
897897
m.Get(".patch", repo.DownloadPullPatch)
898898
m.Post("/update", reqToken(), repo.UpdatePullRequest)

0 commit comments

Comments
 (0)