From 8917f47347d68382ea7d29b0e7debd42d4aa9b54 Mon Sep 17 00:00:00 2001
From: Andrey Nering <andrey.nering@gmail.com>
Date: Thu, 18 May 2017 11:15:32 -0300
Subject: Fix org repos not showing on dashboard search

---
 routers/api/v1/repo/repo.go | 1 +
 1 file changed, 1 insertion(+)

(limited to 'routers/api/v1/repo')

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.
-- 
cgit v1.2.3