The "public" field no longer exists in gpx_files.
This commit is contained in:
parent
565171486f
commit
e8a2a15ea1
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue