diff options
author | Go MAEDA <maeda@farend.jp> | 2021-04-25 13:10:21 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2021-04-25 13:10:21 +0000 |
commit | 77fa0fc4d4c29b94408f7a51cef020fe9e52d01d (patch) | |
tree | 00cfb973470630e4eb4df51ed881ee4d694f13c8 /test/unit | |
parent | 1d4042d262c46d623b2cc36465552094fe46a312 (diff) | |
download | redmine-77fa0fc4d4c29b94408f7a51cef020fe9e52d01d.tar.gz redmine-77fa0fc4d4c29b94408f7a51cef020fe9e52d01d.zip |
Merged r20970 from trunk to 4.1-stable (#35045).
git-svn-id: http://svn.redmine.org/redmine/branches/4.1-stable@20972 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit')
-rw-r--r-- | test/unit/mail_handler_test.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/unit/mail_handler_test.rb b/test/unit/mail_handler_test.rb index 3c749b329..35ab6e53a 100644 --- a/test/unit/mail_handler_test.rb +++ b/test/unit/mail_handler_test.rb @@ -1005,9 +1005,11 @@ class MailHandlerTest < ActiveSupport::TestCase end end - def test_reply_to_a_issue_without_permission + def test_reply_to_an_issue_without_permission set_tmp_attachments_directory - Role.all.each {|r| r.remove_permission! :add_issue_notes, :edit_issues} + # "add_issue_notes" permission is explicit required to allow users to add notes + # "edit_issue" permission no longer includes the "add_issue_notes" permission + Role.all.each {|r| r.remove_permission! :add_issue_notes} assert_no_difference 'Issue.count' do assert_no_difference 'Journal.count' do assert_not submit_email('ticket_reply_with_status.eml') |