Fix wrong identify poster on a migrated pull request when submi… (#9827)
This commit is contained in:
parent
3c07d03c03
commit
088759f180
2 changed files with 2 additions and 2 deletions
|
@ -83,7 +83,7 @@ func SubmitReview(ctx *context.Context, form auth.SubmitReviewForm) {
|
|||
|
||||
// can not approve/reject your own PR
|
||||
case models.ReviewTypeApprove, models.ReviewTypeReject:
|
||||
if issue.Poster.ID == ctx.User.ID {
|
||||
if issue.IsPoster(ctx.User.ID) {
|
||||
var translated string
|
||||
if reviewType == models.ReviewTypeApprove {
|
||||
translated = ctx.Tr("repo.issues.review.self.approval")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue