projects
/
rails.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
df3db35
)
attempt fix for anon users
author
Richard Fairhurst
<richard@systemed.net>
Wed, 12 Dec 2007 20:17:12 +0000
(20:17 +0000)
committer
Richard Fairhurst
<richard@systemed.net>
Wed, 12 Dec 2007 20:17:12 +0000
(20:17 +0000)
app/controllers/amf_controller.rb
patch
|
blob
|
history
diff --git
a/app/controllers/amf_controller.rb
b/app/controllers/amf_controller.rb
index ca45de55d30c0df9ca43f48658bd61b3a046d3b9..9fb9b89405cdfbc8d0e0067a12d735c30a9707d1 100644
(file)
--- 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]