diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-05-30 09:10:06 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-05-30 09:10:06 +0000 |
commit | 78384d147a48a2d690c35f030232e232800dd919 (patch) | |
tree | 716f4a95300f4e16cdf9f2f432d0b22cd943b4db /test/functional | |
parent | 9e39ad4719949ddf0b7156198e4220290a069683 (diff) | |
download | redmine-78384d147a48a2d690c35f030232e232800dd919.tar.gz redmine-78384d147a48a2d690c35f030232e232800dd919.zip |
Menu should not include "New issue" for users with copy issues permission only.
git-svn-id: http://svn.redmine.org/redmine/trunk@14290 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional')
-rw-r--r-- | test/functional/projects_controller_test.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/functional/projects_controller_test.rb b/test/functional/projects_controller_test.rb index 70c32c5f0..2efb98ccd 100644 --- a/test/functional/projects_controller_test.rb +++ b/test/functional/projects_controller_test.rb @@ -671,4 +671,14 @@ class ProjectsControllerTest < ActionController::TestCase get :show, :id => 1 assert_select '#main-menu a.new-issue', 0 end + + def test_project_menu_should_not_include_new_issue_link_for_users_with_copy_issues_permission_only + role = Role.find(1) + role.remove_permission! :add_issues + role.add_permission! :copy_issues + + @request.session[:user_id] = 2 + get :show, :id => 1 + assert_select '#main-menu a.new-issue', 0 + end end |