From: Tom Hughes Date: Thu, 13 Aug 2009 17:57:14 +0000 (+0000) Subject: The "public" field no longer exists in gpx_files. X-Git-Tag: live~6716 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/e8a2a15ea111f867cc4c3682aacff587dedfa9f1?ds=sidebyside The "public" field no longer exists in gpx_files. --- diff --git a/app/controllers/trace_controller.rb b/app/controllers/trace_controller.rb index b8d189316..9bddf9154 100644 --- 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