diff --git a/routers/search.go b/routers/search.go index 796f41b52..7699e7a17 100644 --- a/routers/search.go +++ b/routers/search.go @@ -161,6 +161,7 @@ func searchRepo(ctx *context.Context, TableName string, Key string, Page int, Pa }, Actor: ctx.User, OrderBy: orderBy, + Private: true, OnlyPrivate: true, Keyword: Key, IncludeDescription: setting.UI.SearchRepoDescription,