Skip to content

Commit c6b73a2

Browse files
committed
add permission for admin to list user's orgs even he is a private user of org
1 parent 8463b3c commit c6b73a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/api/v1/org/org.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ func ListUserOrgs(ctx *context.APIContext) {
6060
if ctx.Written() {
6161
return
6262
}
63-
listUserOrgs(ctx, u, false)
63+
listUserOrgs(ctx, u, ctx.User.IsAdmin)
6464
}
6565

6666
// Create api for create organization

0 commit comments

Comments
 (0)