From e8a2a15ea111f867cc4c3682aacff587dedfa9f1 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Thu, 13 Aug 2009 17:57:14 +0000 Subject: [PATCH] The "public" field no longer exists in gpx_files. --- app/controllers/trace_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.43.2