Skip to content

Commit

Permalink
add permission for admin to list user's orgs even he is a private use…
Browse files Browse the repository at this point in the history
…r of org
  • Loading branch information
lunny committed Dec 8, 2018
1 parent 8463b3c commit c6b73a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routers/api/v1/org/org.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c6b73a2

Please sign in to comment.