Fixed: private subprojects names may be revealed on issue summary report (#5360).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3692 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2010-04-27 16:43:52 +00:00
parent df7edb843b
commit c18cb9451d
1 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ class ReportsController < ApplicationController
@categories = @project.issue_categories
@assignees = @project.members.collect { |m| m.user }.sort
@authors = @project.members.collect { |m| m.user }.sort
@subprojects = @project.descendants.active
@subprojects = @project.descendants.visible
@issues_by_tracker = Issue.by_tracker(@project)
@issues_by_version = Issue.by_version(@project)
@ -73,7 +73,7 @@ class ReportsController < ApplicationController
@report_title = l(:field_author)
when "subproject"
@field = "project_id"
@rows = @project.descendants.active
@rows = @project.descendants.visible
@data = Issue.by_subproject(@project) || []
@report_title = l(:field_subproject)
end