1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-08-02 16:35:19 +02: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:
Bo-Yi Wu 2017-02-26 13:59:31 +08:00 committed by Lunny Xiao
parent 831ff41754
commit 95574a3640
4 changed files with 39 additions and 25 deletions

View file

@ -116,7 +116,7 @@ func createIssueIndexer() error {
// populateIssueIndexer populate the issue indexer with issue data
func populateIssueIndexer() error {
for page := 1; ; page++ {
repos, err := Repositories(&SearchRepoOptions{
repos, _, err := Repositories(&SearchRepoOptions{
Page: page,
PageSize: 10,
})