Browse Source

Fix bug on detect issue/comment writer (#17592)

tags/v1.15.7
Lunny Xiao 4 years ago committed by GitHub
parent
commit
1cec7f5ab5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      routers/web/repo/issue.go

2
routers/web/repo/issue.go

@ -1019,7 +1019,7 @@ func commentTag(repo *models.Repository, poster *models.User, issue *models.Issu
return models.CommentTagNone, err
}
if perm.CanWrite(models.UnitTypeCode) {
if perm.CanWriteIssuesOrPulls(issue.IsPull) {
return models.CommentTagWriter, nil
}

Loading…
Cancel
Save