summaryrefslogtreecommitdiffstats
path: root/routers/home.go
diff options
context:
space:
mode:
author6543 <6543@obermui.de>2020-01-05 19:48:47 +0100
committerzeripath <art27@cantab.net>2020-01-05 18:48:47 +0000
commit133ae18b61c5d3bdfc7670b8320abe84dd96cbe2 (patch)
treef0578979a35ff329499b83888aa6f9e5278cb9c3 /routers/home.go
parent7e4f490482014fa52d15902b5aa20952461c64f4 (diff)
downloadgitea-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 'routers/home.go')
-rw-r--r--routers/home.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/routers/home.go b/routers/home.go
index d223054f4c..773e0f3d6b 100644
--- a/routers/home.go
+++ b/routers/home.go
@@ -142,6 +142,7 @@ func RenderRepoSearch(ctx *context.Context, opts *RepoSearchOptions) {
Keyword: keyword,
OwnerID: opts.OwnerID,
AllPublic: true,
+ AllLimited: true,
TopicOnly: topicOnly,
IncludeDescription: setting.UI.SearchRepoDescription,
})