summaryrefslogtreecommitdiffstats
path: root/app/controllers/projects_controller.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2008-05-01 12:56:59 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2008-05-01 12:56:59 +0000
commit2d11265ec5e1696769bbd0f115cc14d2461c588f (patch)
treed98870b81a0b6bbc33d77f8ae330737ddb5e225f /app/controllers/projects_controller.rb
parent6d637ad98255ab85cfc7728a0972e0b5181770a5 (diff)
downloadredmine-2d11265ec5e1696769bbd0f115cc14d2461c588f.tar.gz
redmine-2d11265ec5e1696769bbd0f115cc14d2461c588f.zip
Fixed: private subprojects names are revealed on the project overview (#1152).
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1399 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/projects_controller.rb')
-rw-r--r--app/controllers/projects_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb
index b71ec1ecd..34ce734a5 100644
--- a/app/controllers/projects_controller.rb
+++ b/app/controllers/projects_controller.rb
@@ -87,7 +87,7 @@ class ProjectsController < ApplicationController
def show
@custom_values = @project.custom_values.find(:all, :include => :custom_field, :order => "#{CustomField.table_name}.position")
@members_by_role = @project.members.find(:all, :include => [:user, :role], :order => 'position').group_by {|m| m.role}
- @subprojects = @project.active_children
+ @subprojects = @project.children.find(:all, :conditions => Project.visible_by(User.current))
@news = @project.news.find(:all, :limit => 5, :include => [ :author, :project ], :order => "#{News.table_name}.created_on DESC")
@trackers = @project.rolled_up_trackers