diff options
author | Andrey Nering <andrey.nering@gmail.com> | 2017-05-27 17:40:09 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-27 17:40:09 -0300 |
commit | e67ece26f0b97437200998b9b153b4c3a87a65aa (patch) | |
tree | 17532418661ed29a41d8f701c64e29d532a2be15 /routers | |
parent | bafd778c259801f0ceef1f621851afd43eabc3a5 (diff) | |
parent | 12dbdaac76b0eaa625d4e656df725bcd63218420 (diff) | |
download | gitea-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.go | 3 |
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 { |