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 7dcf9dd commit 4845093Copy full SHA for 4845093
routers/api/v1/repo/pull.go
@@ -488,6 +488,11 @@ func EditPullRequest(ctx *context.APIContext) {
488
issue := pr.Issue
489
issue.Repo = ctx.Repo.Repository
490
491
+ if err := issue.LoadAttributes(ctx); err != nil {
492
+ ctx.Error(http.StatusInternalServerError, "LoadAttributes", err)
493
+ return
494
+ }
495
+
496
if !issue.IsPoster(ctx.Doer.ID) && !ctx.Repo.CanWrite(unit.TypePullRequests) {
497
ctx.Status(http.StatusForbidden)
498
return
0 commit comments