summaryrefslogtreecommitdiffstats
path: root/models/issue_indexer.go
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 /models/issue_indexer.go
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 'models/issue_indexer.go')
-rw-r--r--models/issue_indexer.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/issue_indexer.go b/models/issue_indexer.go
index 49875fcf7f..be74bb24f2 100644
--- a/models/issue_indexer.go
+++ b/models/issue_indexer.go
@@ -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,
})