diff options
author | 6543 <6543@obermui.de> | 2021-08-30 20:00:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-30 14:00:59 -0400 |
commit | 73394f435c4a15b9d2ef5449213254f12fb34e1d (patch) | |
tree | 5ad44cc1e1938b1c6ed9059b0140314c35ee7b70 /routers/api/v1/admin/org.go | |
parent | 06b9d553bc02f88553ced9822c55ae901e2ac28e (diff) | |
download | gitea-73394f435c4a15b9d2ef5449213254f12fb34e1d.tar.gz gitea-73394f435c4a15b9d2ef5449213254f12fb34e1d.zip |
[API] List limited and private orgs if authentificated (#16866)
* fix bug #16785 and similar
* code format
* CI.restart()
Diffstat (limited to 'routers/api/v1/admin/org.go')
-rw-r--r-- | routers/api/v1/admin/org.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/routers/api/v1/admin/org.go b/routers/api/v1/admin/org.go index f1a766d544..5da87fa7df 100644 --- a/routers/api/v1/admin/org.go +++ b/routers/api/v1/admin/org.go @@ -105,6 +105,7 @@ func GetAllOrgs(ctx *context.APIContext) { listOptions := utils.GetListOptions(ctx) users, maxResults, err := models.SearchUsers(&models.SearchUserOptions{ + Actor: ctx.User, Type: models.UserTypeOrganization, OrderBy: models.SearchOrderByAlphabetically, ListOptions: listOptions, |