attempt fix for anon users
authorRichard Fairhurst <richard@systemed.net>
Wed, 12 Dec 2007 20:17:12 +0000 (20:17 +0000)
committerRichard Fairhurst <richard@systemed.net>
Wed, 12 Dec 2007 20:17:12 +0000 (20:17 +0000)
app/controllers/amf_controller.rb

index ca45de55d30c0df9ca43f48658bd61b3a046d3b9..9fb9b89405cdfbc8d0e0067a12d735c30a9707d1 100644 (file)
@@ -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]