Skip to content

Commit

Permalink
Expose group memberships via /user/details call
Browse files Browse the repository at this point in the history
  • Loading branch information
systemed committed Jun 13, 2013
1 parent a1d3186 commit 77c9368
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/views/user/api_read.builder
Expand Up @@ -22,6 +22,11 @@ xml.osm("version" => API_VERSION, "generator" => GENERATOR) do
end
xml.tag! "changesets", :count => @this_user.changesets.size
xml.tag! "traces", :count => @this_user.traces.size
xml.tag! "memberships" do
@this_user.groups.each do |group|
xml.tag! "group", :id => group.id, :title => group.title
end
end
xml.tag! "blocks" do
xml.tag! "received", :count => @this_user.blocks.size,
:active => @this_user.blocks.active.size
Expand Down

0 comments on commit 77c9368

Please sign in to comment.