summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-08-13 10:28:55 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-08-13 10:28:55 +0000
commita8b202c9bc6be472ad1c1e567d05f1d3960d98ef (patch)
tree8a7994ee8500817928bcc538cdcd1b50bac5825e
parent64d805b009cd8bac5c0b3bbf94f8ec9ffcdd1adb (diff)
downloadredmine-a8b202c9bc6be472ad1c1e567d05f1d3960d98ef.tar.gz
redmine-a8b202c9bc6be472ad1c1e567d05f1d3960d98ef.zip
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
-rw-r--r--app/controllers/account_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/account_controller.rb b/app/controllers/account_controller.rb
index 0b70972f5..8ee046a0c 100644
--- a/app/controllers/account_controller.rb
+++ b/app/controllers/account_controller.rb
@@ -26,7 +26,7 @@ class AccountController < ApplicationController
# Show user's account
def show
- @user = User.find(params[:id])
+ @user = User.find_active(params[:id])
@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