Redmine 4.1.7
This commit is contained in:
parent
55458d3479
commit
3ca3c37487
103 changed files with 2426 additions and 431 deletions
|
@ -1005,6 +1005,18 @@ class MailHandlerTest < ActiveSupport::TestCase
|
|||
end
|
||||
end
|
||||
|
||||
def test_reply_to_an_issue_without_permission
|
||||
set_tmp_attachments_directory
|
||||
# "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')
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
def test_reply_to_a_nonexitent_journal
|
||||
journal_id = Issue.find(2).journals.last.id
|
||||
Journal.destroy(journal_id)
|
||||
|
@ -1056,6 +1068,13 @@ class MailHandlerTest < ActiveSupport::TestCase
|
|||
end
|
||||
end
|
||||
|
||||
def test_reply_to_a_topic_without_permission
|
||||
Role.all.each {|r| r.remove_permission! :add_messages}
|
||||
assert_no_difference('Message.count') do
|
||||
assert_not submit_email('message_reply_by_subject.eml')
|
||||
end
|
||||
end
|
||||
|
||||
def test_should_convert_tags_of_html_only_emails
|
||||
with_settings :text_formatting => 'textile' do
|
||||
issue = submit_email('ticket_html_only.eml', :issue => {:project => 'ecookbook'})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue