From: Tom Hughes Date: Thu, 6 May 2010 20:52:27 +0000 (+0100) Subject: Fix user visibility check X-Git-Tag: live~6858^2~12 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/97c2406ae4abfc56ce9ebd1d31480d92f3c40c7b Fix user visibility check --- diff --git a/app/controllers/changeset_controller.rb b/app/controllers/changeset_controller.rb index 79000c685..d0a357c85 100644 --- a/app/controllers/changeset_controller.rb +++ b/app/controllers/changeset_controller.rb @@ -255,7 +255,7 @@ class ChangesetController < ApplicationController conditions = conditions_nonempty if params[:display_name] - user = User.find_by_display_name(params[:display_name], :conditions => { :visible => true }) + user = User.find_by_display_name(params[:display_name], :conditions => { :status => ["active", "confirmed"] }) if user if user.data_public? or user == @user