The "public" field no longer exists in gpx_files.

This commit is contained in:
Tom Hughes 2009-08-13 17:57:14 +00:00
parent 565171486f
commit e8a2a15ea1

View file

@ -51,7 +51,7 @@ class TraceController < ApplicationController
if @user and @user == target_user 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) 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 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
end end