Adds a "visible" option on User and Project custom fields (#1738).

If set to false, the custom field won't be display on user profile/project overview.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4382 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2010-11-07 14:15:01 +00:00
parent 3b01ea9fa4
commit 475530e59f
15 changed files with 62 additions and 7 deletions
-1
View File
@@ -51,7 +51,6 @@ class UsersController < ApplicationController
def show
@user = User.find(params[:id])
@custom_values = @user.custom_values
# show projects based on current user visibility
@memberships = @user.memberships.all(:conditions => Project.visible_by(User.current))