projects
/
rails.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5651714
)
The "public" field no longer exists in gpx_files.
author
Tom Hughes
<tom@compton.nu>
Thu, 13 Aug 2009 17:57:14 +0000
(17:57 +0000)
committer
Tom Hughes
<tom@compton.nu>
Thu, 13 Aug 2009 17:57:14 +0000
(17:57 +0000)
app/controllers/trace_controller.rb
patch
|
blob
|
history
diff --git
a/app/controllers/trace_controller.rb
b/app/controllers/trace_controller.rb
index b8d189316d0d70f1c926b3198f4197229c95460d..9bddf9154d7c36d70da1a8c4f301f503a9197dfa 100644
(file)
--- a/
app/controllers/trace_controller.rb
+++ b/
app/controllers/trace_controller.rb
@@
-51,7
+51,7
@@
class TraceController < ApplicationController
if @user and @user == target_user
conditions = ["gpx_files.user_id = ?", @user.id] #3 (check vs user id, so no join + can't pick up non-public traces by changing name)
else
- conditions = ["gpx_files.
public
<> 'private' AND gpx_files.user_id = ?", target_user.id] #4
+ conditions = ["gpx_files.
visibility
<> 'private' AND gpx_files.user_id = ?", target_user.id] #4
end
end