diff options
author | zeripath <art27@cantab.net> | 2020-02-19 00:36:19 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-18 21:36:19 -0300 |
commit | 41294b53b3ca4b478b74e05e7d012899bf51e19f (patch) | |
tree | 13b87bf7ba699136984a6d7e15a67753c9929bdd /models/attachment_test.go | |
parent | 9f1f2e66757d49a7e7096501514bd90a53190ec0 (diff) | |
download | gitea-41294b53b3ca4b478b74e05e7d012899bf51e19f.tar.gz gitea-41294b53b3ca4b478b74e05e7d012899bf51e19f.zip |
Reading pull attachments should depend on read UnitTypePullRequests (#10346)
* Make pull attachments depend on read UnitTypePullRequests
Fixes #10336
* Fix test
Diffstat (limited to 'models/attachment_test.go')
-rw-r--r-- | models/attachment_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/attachment_test.go b/models/attachment_test.go index ddb6abad32..7d681e0519 100644 --- a/models/attachment_test.go +++ b/models/attachment_test.go @@ -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}, } |