Fix user visibility check
authorTom Hughes <tom@compton.nu>
Thu, 6 May 2010 20:52:27 +0000 (21:52 +0100)
committerTom Hughes <tom@compton.nu>
Thu, 6 May 2010 20:52:27 +0000 (21:52 +0100)
app/controllers/changeset_controller.rb

index 79000c6852598a212b79661757ee87932a1380f8..d0a357c85c8258436acbc826f8995580f3e43762 100644 (file)
@@ -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