fix #14250
Signed-off-by: a101211279
<1012112796@qq.com>
tags/v1.15.0-dev
return err | return err | ||||
} | } | ||||
checkUnit := models.UnitTypeIssues | |||||
if ctx.Issue.IsPull { | |||||
checkUnit = models.UnitTypePullRequests | |||||
} | |||||
// Make sure all recipients can still see the issue | // Make sure all recipients can still see the issue | ||||
idx := 0 | idx := 0 | ||||
for _, r := range recipients { | for _, r := range recipients { | ||||
if ctx.Issue.Repo.CheckUnitUser(r, models.UnitTypeIssues) { | |||||
if ctx.Issue.Repo.CheckUnitUser(r, checkUnit) { | |||||
recipients[idx] = r | recipients[idx] = r | ||||
idx++ | idx++ | ||||
} | } |