From 8917f47347d68382ea7d29b0e7debd42d4aa9b54 Mon Sep 17 00:00:00 2001 From: Andrey Nering Date: Thu, 18 May 2017 11:15:32 -0300 Subject: [PATCH] Fix org repos not showing on dashboard search --- routers/api/v1/repo/repo.go | 1 + 1 file changed, 1 insertion(+) diff --git a/routers/api/v1/repo/repo.go b/routers/api/v1/repo/repo.go index 83b1dbd26b9c..2c01352fcf85 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.