File tree Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -105,6 +105,7 @@ func GetAllOrgs(ctx *context.APIContext) {
105
105
listOptions := utils .GetListOptions (ctx )
106
106
107
107
users , maxResults , err := models .SearchUsers (& models.SearchUserOptions {
108
+ Actor : ctx .User ,
108
109
Type : models .UserTypeOrganization ,
109
110
OrderBy : models .SearchOrderByAlphabetically ,
110
111
ListOptions : listOptions ,
Original file line number Diff line number Diff line change @@ -128,6 +128,7 @@ func GetAll(ctx *context.APIContext) {
128
128
listOptions := utils .GetListOptions (ctx )
129
129
130
130
publicOrgs , maxResults , err := models .SearchUsers (& models.SearchUserOptions {
131
+ Actor : ctx .User ,
131
132
ListOptions : listOptions ,
132
133
Type : models .UserTypeOrganization ,
133
134
OrderBy : models .SearchOrderByAlphabetically ,
You can’t perform that action at this time.
0 commit comments