aboutsummaryrefslogtreecommitdiffstats
path: root/routers/admin
diff options
context:
space:
mode:
authorBo-Yi Wu <appleboy.tw@gmail.com>2017-02-26 13:59:31 +0800
committerLunny Xiao <xiaolunwen@gmail.com>2017-02-26 13:59:31 +0800
commit95574a36400e7714d78e7016c8a14dc0b60311b1 (patch)
tree6c524878571dbf30c7b189273bdcb9b0d28dfe22 /routers/admin
parent831ff417547f0f0a26c75288bdb790ea40087c0c (diff)
downloadgitea-95574a36400e7714d78e7016c8a14dc0b60311b1.tar.gz
gitea-95574a36400e7714d78e7016c8a14dc0b60311b1.zip
fix: Admin can see all private repositories on Explore page. (#1026)
* fix: Admin can see all private repositories on Explore page. * refactor: fix session
Diffstat (limited to 'routers/admin')
-rw-r--r--routers/admin/repos.go1
1 files changed, 0 insertions, 1 deletions
diff --git a/routers/admin/repos.go b/routers/admin/repos.go
index f2f402db76..7f885b34c9 100644
--- a/routers/admin/repos.go
+++ b/routers/admin/repos.go
@@ -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,