mirror of
https://github.com/go-gitea/gitea
synced 2024-10-31 23:34:25 +00:00
Fix bug on detect issue/comment writer (#17591)
This commit is contained in:
parent
021df29623
commit
03de593402
@ -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…
Reference in New Issue
Block a user