Don't expose lat/lon of private traces
This commit is contained in:
parent
20e5f756be
commit
02bdc8f1ad
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue