X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/565171486f6d90321e0291d5ccc3cf6a1c12e730..e8a2a15ea111f867cc4c3682aacff587dedfa9f1:/app/controllers/trace_controller.rb 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