Skip to content

Commit 03de593

Browse files
authored
Fix bug on detect issue/comment writer (#17591)
1 parent 021df29 commit 03de593

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/web/repo/issue.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1041,7 +1041,7 @@ func commentTag(repo *models.Repository, poster *models.User, issue *models.Issu
10411041
return models.CommentTagNone, err
10421042
}
10431043

1044-
if perm.CanWrite(models.UnitTypeCode) {
1044+
if perm.CanWriteIssuesOrPulls(issue.IsPull) {
10451045
return models.CommentTagWriter, nil
10461046
}
10471047

0 commit comments

Comments
 (0)