From: Richard Fairhurst Date: Wed, 12 Dec 2007 20:17:12 +0000 (+0000) Subject: attempt fix for anon users X-Git-Tag: live~8551 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/3461b7a699a753906ba4333ffd8d19deafd33605 attempt fix for anon users --- diff --git a/app/controllers/amf_controller.rb b/app/controllers/amf_controller.rb index ca45de55d..9fb9b8940 100644 --- a/app/controllers/amf_controller.rb +++ b/app/controllers/amf_controller.rb @@ -279,7 +279,7 @@ class AmfController < ApplicationController EOF histlist=ActiveRecord::Base.connection.select_all(sql) histlist.each { |row| - if row['data_public'] then user=row['display_name'] else user='anonymous' end + if row['data_public'].to_i==1 then user=row['display_name'] else user='anonymous' end history<<[row['version'],row['timestamp'],row['visible'],user] } [history]