1
1
mirror of https://github.com/go-gitea/gitea synced 2025-08-23 01:48:27 +00:00

List limited and private orgs if authenticated on API (#16866) (#16879)

This commit is contained in:
6543
2021-08-31 12:49:02 +02:00
committed by GitHub
parent af1fd56d8a
commit 3ac1f35349
3 changed files with 4 additions and 4 deletions

View File

@@ -130,6 +130,7 @@ func GetAll(ctx *context.APIContext) {
listOptions := utils.GetListOptions(ctx)
publicOrgs, maxResults, err := models.SearchUsers(&models.SearchUserOptions{
Actor: ctx.User,
ListOptions: listOptions,
Type: models.UserTypeOrganization,
OrderBy: models.SearchOrderByAlphabetically,