mirror of
https://github.com/meineerde/redmine.git
synced 2026-03-10 19:23:06 +00:00
Merged r21152 to 4.2-stable (#35634).
git-svn-id: http://svn.redmine.org/redmine/branches/4.2-stable@21154 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
24a8f97dec
commit
1b150f4165
@ -3149,16 +3149,16 @@ class IssuesControllerTest < Redmine::ControllerTest
|
||||
end
|
||||
|
||||
def test_show_should_not_display_edit_attachment_icon_for_user_without_edit_issue_permission_on_tracker
|
||||
role = Role.find(2)
|
||||
role.set_permission_trackers 'edit_issues', [2, 3]
|
||||
role.save!
|
||||
role = Role.find(2)
|
||||
role.set_permission_trackers 'edit_issues', [2, 3]
|
||||
role.save!
|
||||
|
||||
@request.session[:user_id] = 2
|
||||
@request.session[:user_id] = 2
|
||||
|
||||
get :show, params: {id: 4}
|
||||
get :show, params: {id: 4}
|
||||
|
||||
assert_response :success
|
||||
assert_select 'div.attachments .icon-edit', 0
|
||||
assert_response :success
|
||||
assert_select 'div.attachments .icon-edit', 0
|
||||
end
|
||||
|
||||
def test_show_should_not_display_delete_attachment_icon_for_user_without_edit_issue_permission_on_tracker
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user