mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-06-01 12:22:11 +00:00
fix: Admin can see all private repositories on Explore page. (#1026)
* fix: Admin can see all private repositories on Explore page. * refactor: fix session
This commit is contained in:
parent
831ff41754
commit
95574a3640
4 changed files with 39 additions and 25 deletions
|
@ -24,7 +24,6 @@ func Repos(ctx *context.Context) {
|
|||
ctx.Data["PageIsAdminRepositories"] = true
|
||||
|
||||
routers.RenderRepoSearch(ctx, &routers.RepoSearchOptions{
|
||||
Counter: models.CountRepositories,
|
||||
Ranger: models.Repositories,
|
||||
Private: true,
|
||||
PageSize: setting.UI.Admin.RepoPagingNum,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue