mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
add tests for api user orgs (#5494)
* add tests for api user orgs * add permission for admin to list user's orgs even he is a private user of org
This commit is contained in:
@@ -60,7 +60,7 @@ func ListUserOrgs(ctx *context.APIContext) {
|
||||
if ctx.Written() {
|
||||
return
|
||||
}
|
||||
listUserOrgs(ctx, u, false)
|
||||
listUserOrgs(ctx, u, ctx.User.IsAdmin)
|
||||
}
|
||||
|
||||
// Create api for create organization
|
||||
|
Reference in New Issue
Block a user