We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48d71b7 commit b767182Copy full SHA for b767182
routers/api/v1/repo/pull.go
@@ -490,6 +490,11 @@ func EditPullRequest(ctx *context.APIContext) {
490
issue := pr.Issue
491
issue.Repo = ctx.Repo.Repository
492
493
+ if err := issue.LoadAttributes(ctx); err != nil {
494
+ ctx.Error(http.StatusInternalServerError, "LoadAttributes", err)
495
+ return
496
+ }
497
+
498
if !issue.IsPoster(ctx.Doer.ID) && !ctx.Repo.CanWrite(unit.TypePullRequests) {
499
ctx.Status(http.StatusForbidden)
500
return
0 commit comments