diff options
author | Andrey Nering <andrey.nering@gmail.com> | 2017-05-18 11:15:32 -0300 |
---|---|---|
committer | Andrey Nering <andrey.nering@gmail.com> | 2017-05-18 11:15:32 -0300 |
commit | 8917f47347d68382ea7d29b0e7debd42d4aa9b54 (patch) | |
tree | 5931be3afbbafcab7803b39a6d3b4b1c1ffd67f5 /routers | |
parent | c4b5b121a56310c53b2ece53d09837cbe67b7eff (diff) | |
download | gitea-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.go | 1 |
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. |