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