mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-06-23 09:30:50 +00:00
Merge pull request #1750 from andreynering/dashboard-search-org-repos
More fixes for dashboard search
This commit is contained in:
commit
e67ece26f0
4 changed files with 8 additions and 25 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue