Commit a8b202c9 authored by Jean-Philippe Lang's avatar Jean-Philippe Lang

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
parent 64d805b0
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment