1
1
mirror of https://github.com/go-gitea/gitea synced 2025-08-09 11:08:19 +00:00

Fix wrong identify poster on a migrated pull request when submi… (#9827) (#9831)

This commit is contained in:
Lunny Xiao
2020-01-17 20:38:53 +08:00
committed by Antoine GIRARD
parent 9809fe27c4
commit 918e640590
2 changed files with 2 additions and 4 deletions

View File

@@ -117,9 +117,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 {