X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/20e5f756be74c8adf31d7ec3a6406a2b4bdb22c1..30ad58c01ff8acae377cfd974fcc94d6898722da:/app/controllers/site_controller.rb diff --git a/app/controllers/site_controller.rb b/app/controllers/site_controller.rb index 72fe3b241..606143f4f 100644 --- a/app/controllers/site_controller.rb +++ b/app/controllers/site_controller.rb @@ -51,7 +51,7 @@ class SiteController < ApplicationController @lat = bbox.centre_lat @lon = bbox.centre_lon elsif params[:gpx] - trace = Trace.find(params[:gpx]) + trace = Trace.visible_to(@user).find(params[:gpx]) @lat = trace.latitude @lon = trace.longitude end