1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-11-29 09:31:11 -05:00

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

This commit is contained in:
Lunny Xiao 2021-11-09 15:44:12 +08:00 committed by GitHub
parent 021df29623
commit 03de593402
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
}