|
|
@@ -1051,9 +1051,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') |