parent
3f59e82926
commit
96c91757fc
1 changed files with 1 additions and 1 deletions
|
@ -84,7 +84,7 @@ class SiteController < ApplicationController
|
|||
@lat = note.lat
|
||||
@lon = note.lon
|
||||
@zoom = 17
|
||||
elsif params[:gpx]
|
||||
elsif params[:gpx] && @user
|
||||
trace = Trace.visible_to(@user).find(params[:gpx])
|
||||
@lat = trace.latitude
|
||||
@lon = trace.longitude
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue