From 3461b7a699a753906ba4333ffd8d19deafd33605 Mon Sep 17 00:00:00 2001 From: Richard Fairhurst Date: Wed, 12 Dec 2007 20:17:12 +0000 Subject: [PATCH] attempt fix for anon users --- app/controllers/amf_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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] -- 2.43.2