lib/osm/api.rb in osm-0.0.20 vs lib/osm/api.rb in osm-0.0.21
- old
+ new
@@ -373,10 +373,10 @@
data = perform_query("users.php?action=getUserDetails§ionid=#{section_id}&termid=#{term_id}", api_data)
result = Array.new
data['items'].each do |item|
- result.push Osm::Member.from_api(item)
+ result.push Osm::Member.from_api(item, section_id)
end
self.user_can_access :member, section_id, api_data
cache_write(cache_key, result, :expires_in => @@default_cache_ttl)
return result