From c01e40ebe465538b8f27cf2981ca2359cfc9e475 Mon Sep 17 00:00:00 2001 From: francis Date: Thu, 28 Feb 2008 10:54:35 +0000 Subject: Don't show accounts of users who haven't confirmed their email. --- app/controllers/user_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/controllers/user_controller.rb') diff --git a/app/controllers/user_controller.rb b/app/controllers/user_controller.rb index 94fe731ba..3dcb72acd 100644 --- a/app/controllers/user_controller.rb +++ b/app/controllers/user_controller.rb @@ -4,7 +4,7 @@ # Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved. # Email: francis@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: user_controller.rb,v 1.30 2008-02-27 13:59:52 francis Exp $ +# $Id: user_controller.rb,v 1.31 2008-02-28 10:54:35 francis Exp $ class UserController < ApplicationController # Show page about a set of users with same url name @@ -14,7 +14,7 @@ class UserController < ApplicationController return end - @display_users = User.find(:all, :conditions => [ "url_name = ?", params[:url_name] ], :order => "created_at desc") + @display_users = User.find(:all, :conditions => [ "url_name = ? and email_confirmed", params[:url_name] ], :order => "created_at desc") end # Login form -- cgit v1.2.3