diff options
author | zeripath <art27@cantab.net> | 2020-05-18 00:27:54 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-18 00:27:54 +0100 |
commit | a4cd1f12f8fee190644c59da79fdd983df3c07b7 (patch) | |
tree | fd55fccab84ded6573de2606984ff685f0db1a32 /routers | |
parent | 9a829b98f0e5a0b21e9b670c4b49f9a381a35e60 (diff) | |
download | gitea-a4cd1f12f8fee190644c59da79fdd983df3c07b7.tar.gz gitea-a4cd1f12f8fee190644c59da79fdd983df3c07b7.zip |
Ensure public repositories in private organizations are visible and fix admin organizations list (#11465)
* Ensure that we can see public repositories in private organization
Fix #10144 (Again)
Signed-off-by: Andrew Thornton <art27@cantab.net>
* Fix Admin users and organizations page
Signed-off-by: Andrew Thornton <art27@cantab.net>
* Update models/repo_list.go
Co-authored-by: Lauris BH <lauris@nix.lv>
Diffstat (limited to 'routers')
-rw-r--r-- | routers/home.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/routers/home.go b/routers/home.go index 1b8c4cd17b..ae94207ade 100644 --- a/routers/home.go +++ b/routers/home.go @@ -194,7 +194,6 @@ func RenderUserSearch(ctx *context.Context, opts *models.SearchUserOptions, tplN if opts.Page <= 1 { opts.Page = 1 } - opts.Actor = ctx.User var ( users []*models.User @@ -252,6 +251,7 @@ func ExploreUsers(ctx *context.Context) { ctx.Data["IsRepoIndexerEnabled"] = setting.Indexer.RepoIndexerEnabled RenderUserSearch(ctx, &models.SearchUserOptions{ + Actor: ctx.User, Type: models.UserTypeIndividual, ListOptions: models.ListOptions{PageSize: setting.UI.ExplorePagingNum}, IsActive: util.OptionalBoolTrue, @@ -272,6 +272,7 @@ func ExploreOrganizations(ctx *context.Context) { } RenderUserSearch(ctx, &models.SearchUserOptions{ + Actor: ctx.User, Type: models.UserTypeOrganization, ListOptions: models.ListOptions{PageSize: setting.UI.ExplorePagingNum}, Visible: visibleTypes, |