Merge r24514 from trunk to 6.1-stable (#43698).

git-svn-id: https://svn.redmine.org/redmine/branches/6.1-stable@24520 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Marius Balteanu
2026-03-20 07:00:27 +00:00
parent 18c7455081
commit 9da717ff25
2 changed files with 18 additions and 0 deletions

View File

@@ -108,6 +108,15 @@ class OauthProviderSystemTest < ApplicationSystemTestCase
RestClient.get "http://localhost:#{test_port}/projects/onlinestore/time_entries.json", headers
end
end
def test_oauth_authorize_with_rest_api_disabled_should_render_403
with_settings rest_api_enabled: 0 do
log_user 'admin', 'admin'
visit '/oauth/authorize'
assert_text "You are not authorized to access this page."
end
end
end
private