Don't expose lat/lon of private traces

This commit is contained in:
John Firebaugh 2012-09-21 15:20:15 -07:00
parent 20e5f756be
commit 02bdc8f1ad

View file

@ -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