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:
parent
64d805b009
commit
a8b202c9bc
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue