Fixed: non-active users can be viewed with account/show

git-svn-id: http://redmine.rubyforge.org/svn/trunk@622 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2007-08-13 10:28:55 +00:00
parent 64d805b009
commit a8b202c9bc
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ class AccountController < ApplicationController
# Show user's account # Show user's account
def show def show
@user = User.find(params[:id]) @user = User.find_active(params[:id])
@custom_values = @user.custom_values.find(:all, :include => :custom_field) @custom_values = @user.custom_values.find(:all, :include => :custom_field)
# show only public projects and private projects that the logged in user is also a member of # show only public projects and private projects that the logged in user is also a member of