We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0917830 commit 470b195Copy full SHA for 470b195
routers/api/v1/org/org.go
@@ -84,7 +84,7 @@ func ListUserOrgs(ctx *context.APIContext) {
84
if ctx.Written() {
85
return
86
}
87
- listUserOrgs(ctx, u, ctx.User.IsAdmin)
+ listUserOrgs(ctx, u, ctx.User != nil && (ctx.User.IsAdmin || ctx.User.ID == u.ID))
88
89
90
// GetAll return list of all public organizations
0 commit comments