Skip to content

Commit

Permalink
Merge branch 'master' into ashmckenzie/fix-passcode-incorect-flash
Browse files Browse the repository at this point in the history
  • Loading branch information
lunny committed Jan 18, 2021
2 parents 5fbd5fc + f95dce2 commit 9fa50a1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions models/issue.go
Original file line number Diff line number Diff line change
Expand Up @@ -1254,6 +1254,7 @@ func applyMentionedCondition(sess *xorm.Session, mentionedID int64) *xorm.Sessio

func applyReviewRequestedCondition(sess *xorm.Session, reviewRequestedID int64) *xorm.Session {
return sess.Join("INNER", []string{"review", "r"}, "issue.id = r.issue_id").
And("issue.poster_id <> ?", reviewRequestedID).
And("r.type = ?", ReviewTypeRequest).
And("r.reviewer_id = ? and r.id in (select max(id) from review where issue_id = r.issue_id and reviewer_id = r.reviewer_id and type in (?, ?, ?))"+
" or r.reviewer_team_id in (select team_id from team_user where uid = ?)",
Expand Down

0 comments on commit 9fa50a1

Please sign in to comment.