From: Tom Hughes Date: Thu, 6 May 2010 21:11:38 +0000 (+0100) Subject: Fix user visibility check X-Git-Tag: live~6858^2~10 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/3026da0cb028a559649282f0498a7cbac1fb633b Fix user visibility check --- diff --git a/app/controllers/trace_controller.rb b/app/controllers/trace_controller.rb index 3c16b9a80..f8ce29aba 100644 --- a/app/controllers/trace_controller.rb +++ b/app/controllers/trace_controller.rb @@ -27,7 +27,7 @@ class TraceController < ApplicationController # from display name, pick up user id if one user's traces only display_name = params[:display_name] if target_user.nil? and !display_name.blank? - target_user = User.find(:first, :conditions => [ "visible = ? and display_name = ?", true, display_name]) + target_user = User.find(:first, :conditions => { :status => ["active", "confirmed"], :display_name => display_name }) if target_user.nil? @title = t'trace.no_such_user.title' @not_found_user = display_name