Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add tests for api user orgs #5494

Merged
merged 3 commits into from
Dec 9, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add permission for admin to list user's orgs even he is a private use…
…r of org
  • Loading branch information
lunny committed Dec 8, 2018
commit c6b73a22e3f572feff9f6d77ba27259c8a088271
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