Commit 1c90626d authored by Thiago Ribeiro's avatar Thiago Ribeiro Committed by Rodrigo Souto

Add attribute admin username in community via api

parent 2523891c
......@@ -119,7 +119,7 @@ module Noosfero
root 'communities', 'community'
expose :description
expose :admins do |community, options|
community.admins.map{|admin| {"name"=>admin.name, "id"=>admin.id}}
community.admins.map{|admin| {"name"=>admin.name, "id"=>admin.id, "username" => admin.identifier}}
end
expose :categories, :using => Category
expose :members, :using => Person
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment