summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorAndrey Nering <andrey.nering@gmail.com>2017-05-18 11:15:32 -0300
committerAndrey Nering <andrey.nering@gmail.com>2017-05-18 11:15:32 -0300
commit8917f47347d68382ea7d29b0e7debd42d4aa9b54 (patch)
tree5931be3afbbafcab7803b39a6d3b4b1c1ffd67f5 /routers
parentc4b5b121a56310c53b2ece53d09837cbe67b7eff (diff)
downloadgitea-8917f47347d68382ea7d29b0e7debd42d4aa9b54.tar.gz
gitea-8917f47347d68382ea7d29b0e7debd42d4aa9b54.zip
Fix org repos not showing on dashboard search
Diffstat (limited to 'routers')
-rw-r--r--routers/api/v1/repo/repo.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/routers/api/v1/repo/repo.go b/routers/api/v1/repo/repo.go
index 83b1dbd26b..2c01352fcf 100644
--- a/routers/api/v1/repo/repo.go
+++ b/routers/api/v1/repo/repo.go
@@ -32,6 +32,7 @@ func Search(ctx *context.APIContext) {
Keyword: strings.Trim(ctx.Query("q"), " "),
OwnerID: ctx.QueryInt64("uid"),
PageSize: convert.ToCorrectPageSize(ctx.QueryInt("limit")),
+ Searcher: ctx.User,
}
// Check visibility.