mirror of
https://github.com/redmine/redmine.git
synced 2026-04-01 18:21:12 +02:00
Merged r21141 to 4.2-stable (#35634).
git-svn-id: http://svn.redmine.org/redmine/branches/4.2-stable@21143 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -524,6 +524,23 @@ class AttachmentsControllerTest < Redmine::ControllerTest
|
||||
assert_response 403
|
||||
end
|
||||
|
||||
def test_edit_all_issue_attachment_by_user_without_edit_issue_permission_on_tracker_should_return_404
|
||||
role = Role.find(2)
|
||||
role.set_permission_trackers 'edit_issues', [2, 3]
|
||||
role.save!
|
||||
|
||||
@request.session[:user_id] = 2
|
||||
|
||||
get(
|
||||
:edit_all,
|
||||
:params => {
|
||||
:object_type => 'issues',
|
||||
:object_id => '4'
|
||||
}
|
||||
)
|
||||
assert_response 404
|
||||
end
|
||||
|
||||
def test_update_all
|
||||
@request.session[:user_id] = 2
|
||||
patch(
|
||||
|
||||
Reference in New Issue
Block a user