Fix missed doer (#30231) (#30343)

Backport #30231 by @lunny

Fix #29879

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
(cherry picked from commit e0b9638191508180a3e5da916550d00c76dd7eaa)
This commit is contained in:
Giteabot 2024-04-09 07:42:45 +08:00 committed by Earl Warren
parent fb028c37b5
commit 6ad8ed5da1
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00
11 changed files with 55 additions and 55 deletions

View file

@ -108,7 +108,7 @@ func ListIssueAttachments(ctx *context.APIContext) {
return
}
ctx.JSON(http.StatusOK, convert.ToAPIIssue(ctx, issue).Attachments)
ctx.JSON(http.StatusOK, convert.ToAPIIssue(ctx, ctx.Doer, issue).Attachments)
}
// CreateIssueAttachment creates an attachment and saves the given file