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

forgejo
Lunny Xiao 3 years ago committed by GitHub
parent 021df29623
commit 03de593402
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1041,7 +1041,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