forked from NYANDEV/forgejo
Reading pull attachments should depend on read UnitTypePullRequests (#10346)
* Make pull attachments depend on read UnitTypePullRequests Fixes #10336 * Fix test
This commit is contained in:
parent
9f1f2e6675
commit
41294b53b3
2 changed files with 6 additions and 2 deletions
|
@ -138,7 +138,7 @@ func TestLinkedRepository(t *testing.T) {
|
|||
expectedUnitType UnitType
|
||||
}{
|
||||
{"LinkedIssue", 1, &Repository{ID: 1}, UnitTypeIssues},
|
||||
{"LinkedComment", 3, &Repository{ID: 1}, UnitTypeIssues},
|
||||
{"LinkedComment", 3, &Repository{ID: 1}, UnitTypePullRequests},
|
||||
{"LinkedRelease", 9, &Repository{ID: 1}, UnitTypeReleases},
|
||||
{"Notlinked", 10, nil, -1},
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue