mirror of
https://github.com/redmine/redmine.git
synced 2025-11-02 11:25:55 +01:00
Fixed: new gantt chart discloses all private projects names (#6276).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4425 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -49,6 +49,18 @@ class GanttsControllerTest < ActionController::TestCase
|
||||
assert_nil assigns(:gantt).project
|
||||
end
|
||||
|
||||
should "not disclose private projects" do
|
||||
get :show
|
||||
assert_response :success
|
||||
assert_template 'show.html.erb'
|
||||
|
||||
assert_tag 'a', :content => /eCookbook/
|
||||
# Root private project
|
||||
assert_no_tag 'a', {:content => /OnlineStore/}
|
||||
# Private children of a public project
|
||||
assert_no_tag 'a', :content => /Private child of eCookbook/
|
||||
end
|
||||
|
||||
should "export to pdf" do
|
||||
get :show, :project_id => 1, :format => 'pdf'
|
||||
assert_response :success
|
||||
|
||||
Reference in New Issue
Block a user