]> git.openstreetmap.org Git - rails.git/commitdiff
The "public" field no longer exists in gpx_files.
authorTom Hughes <tom@compton.nu>
Thu, 13 Aug 2009 17:57:14 +0000 (17:57 +0000)
committerTom Hughes <tom@compton.nu>
Thu, 13 Aug 2009 17:57:14 +0000 (17:57 +0000)
app/controllers/trace_controller.rb

index b8d189316d0d70f1c926b3198f4197229c95460d..9bddf9154d7c36d70da1a8c4f301f503a9197dfa 100644 (file)
@@ -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