Fix bug on detect issue/comment writer (#17592)
parent
1cb1101d44
commit
1cec7f5ab5
|
@ -1019,7 +1019,7 @@ func commentTag(repo *models.Repository, poster *models.User, issue *models.Issu
|
||||||
return models.CommentTagNone, err
|
return models.CommentTagNone, err
|
||||||
}
|
}
|
||||||
|
|
||||||
if perm.CanWrite(models.UnitTypeCode) {
|
if perm.CanWriteIssuesOrPulls(issue.IsPull) {
|
||||||
return models.CommentTagWriter, nil
|
return models.CommentTagWriter, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue