diff options
author | 6543 <6543@obermui.de> | 2020-01-05 19:48:47 +0100 |
---|---|---|
committer | zeripath <art27@cantab.net> | 2020-01-05 18:48:47 +0000 |
commit | 133ae18b61c5d3bdfc7670b8320abe84dd96cbe2 (patch) | |
tree | f0578979a35ff329499b83888aa6f9e5278cb9c3 /models/repo_list_test.go | |
parent | 7e4f490482014fa52d15902b5aa20952461c64f4 (diff) | |
download | gitea-133ae18b61c5d3bdfc7670b8320abe84dd96cbe2.tar.gz gitea-133ae18b61c5d3bdfc7670b8320abe84dd96cbe2.zip |
[BugFix] Hide public repos owned by private orgs (#9609)
* Restrict AllPublic to actually public repos.
* Add new parameter to add in AllLimited Repos
Diffstat (limited to 'models/repo_list_test.go')
-rw-r--r-- | models/repo_list_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/models/repo_list_test.go b/models/repo_list_test.go index a1eed18b83..07f84207e2 100644 --- a/models/repo_list_test.go +++ b/models/repo_list_test.go @@ -177,8 +177,8 @@ func TestSearchRepository(t *testing.T) { opts: &SearchRepoOptions{Page: 1, PageSize: 10, OwnerID: 15, AllPublic: true, Template: util.OptionalBoolFalse}, count: 25}, {name: "AllPublic/PublicAndPrivateRepositoriesOfUserIncludingCollaborative", - opts: &SearchRepoOptions{Page: 1, PageSize: 10, OwnerID: 15, Private: true, AllPublic: true, Template: util.OptionalBoolFalse}, - count: 31}, + opts: &SearchRepoOptions{Page: 1, PageSize: 10, OwnerID: 15, Private: true, AllPublic: true, AllLimited: true, Template: util.OptionalBoolFalse}, + count: 30}, {name: "AllPublic/PublicAndPrivateRepositoriesOfUserIncludingCollaborativeByName", opts: &SearchRepoOptions{Keyword: "test", Page: 1, PageSize: 10, OwnerID: 15, Private: true, AllPublic: true}, count: 15}, |