mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
Show repos acording to user/organization
This commit is contained in:
@@ -32,7 +32,9 @@ func Search(ctx *context.APIContext) {
|
||||
Keyword: strings.Trim(ctx.Query("q"), " "),
|
||||
OwnerID: ctx.QueryInt64("uid"),
|
||||
PageSize: convert.ToCorrectPageSize(ctx.QueryInt("limit")),
|
||||
Searcher: ctx.User,
|
||||
}
|
||||
if ctx.User.ID == opts.OwnerID {
|
||||
opts.Searcher = ctx.User
|
||||
}
|
||||
|
||||
// Check visibility.
|
||||
|
Reference in New Issue
Block a user