mirror of
https://github.com/redmine/redmine.git
synced 2026-05-07 13:06:19 +02:00
Merge r24443 from trunk to 6.0-stable (#43830).
git-svn-id: https://svn.redmine.org/redmine/branches/6.0-stable@24446 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -60,6 +60,12 @@ class Redmine::ApiTest::TimeEntriesTest < Redmine::ApiTest::Base
|
||||
assert_response :not_found
|
||||
end
|
||||
|
||||
test "GET /time_entries/:id.xml with non visible time entry should 403 " do
|
||||
Role.non_member.update(:time_entries_visibility => 'own')
|
||||
get '/time_entries/4.xml', :headers => credentials('jsmith')
|
||||
assert_response :forbidden
|
||||
end
|
||||
|
||||
test "POST /time_entries.xml with issue_id should create time entry" do
|
||||
assert_difference 'TimeEntry.count' do
|
||||
post(
|
||||
|
||||
Reference in New Issue
Block a user