Commit 80fe18a60900f493298cbce39ce79671d05b9677

Authored by Thiago Ribeiro
1 parent f3f93b11

Add attribute admin username in community via api

(cherry picked from commit f3085abc80ff6485b6b17908da2acaa3d2377942)
Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
lib/noosfero/api/entities.rb
@@ -106,7 +106,7 @@ module Noosfero @@ -106,7 +106,7 @@ module Noosfero
106 root 'communities', 'community' 106 root 'communities', 'community'
107 expose :description 107 expose :description
108 expose :admins do |community, options| 108 expose :admins do |community, options|
109 - community.admins.map{|admin| {"name"=>admin.name, "id"=>admin.id}} 109 + community.admins.map{|admin| {"name"=>admin.name, "id"=>admin.id, "id"=>admin.identifier}}
110 end 110 end
111 expose :categories, :using => Category 111 expose :categories, :using => Category
112 expose :members, :using => Person 112 expose :members, :using => Person