summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorAndrey Nering <andrey.nering@gmail.com>2017-05-27 17:40:09 -0300
committerGitHub <noreply@github.com>2017-05-27 17:40:09 -0300
commite67ece26f0b97437200998b9b153b4c3a87a65aa (patch)
tree17532418661ed29a41d8f701c64e29d532a2be15 /routers
parentbafd778c259801f0ceef1f621851afd43eabc3a5 (diff)
parent12dbdaac76b0eaa625d4e656df725bcd63218420 (diff)
downloadgitea-e67ece26f0b97437200998b9b153b4c3a87a65aa.tar.gz
gitea-e67ece26f0b97437200998b9b153b4c3a87a65aa.zip
Merge pull request #1750 from andreynering/dashboard-search-org-repos
More fixes for dashboard search
Diffstat (limited to 'routers')
-rw-r--r--routers/api/v1/repo/repo.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/routers/api/v1/repo/repo.go b/routers/api/v1/repo/repo.go
index da4034a0d4..e0b693a4e5 100644
--- a/routers/api/v1/repo/repo.go
+++ b/routers/api/v1/repo/repo.go
@@ -33,6 +33,9 @@ func Search(ctx *context.APIContext) {
OwnerID: ctx.QueryInt64("uid"),
PageSize: convert.ToCorrectPageSize(ctx.QueryInt("limit")),
}
+ if ctx.User != nil && ctx.User.ID == opts.OwnerID {
+ opts.Searcher = ctx.User
+ }
// Check visibility.
if ctx.IsSigned && opts.OwnerID > 0 {