We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 23f064e commit b74ed16Copy full SHA for b74ed16
routers/api/v1/org/org.go
@@ -85,7 +85,7 @@ func ListUserOrgs(ctx *context.APIContext) {
85
if ctx.Written() {
86
return
87
}
88
- listUserOrgs(ctx, u, ctx.User.IsAdmin)
+ listUserOrgs(ctx, u, ctx.User != nil && (ctx.User.IsAdmin || ctx.User.ID == u.ID))
89
90
91
// GetAll return list of all public organizations
0 commit comments