mirror of
https://github.com/internetee/registry.git
synced 2025-06-30 08:13:34 +02:00
Access denied forbidden status brakes IE and pingdom monitoring (#617)
*Access denied page forbidden status brakes IE and pingdom monitoring, removing it.
This commit is contained in:
parent
be4c60a760
commit
0f352cab24
2 changed files with 2 additions and 2 deletions
|
@ -155,7 +155,7 @@ class Registrar
|
|||
|
||||
return if allowed
|
||||
|
||||
render text: t('registrar.authorization.ip_not_allowed', ip: request.ip), status: :forbidden
|
||||
render text: t('registrar.authorization.ip_not_allowed', ip: request.ip)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -71,7 +71,7 @@ RSpec.describe 'Registrar area IP restriction', settings: false do
|
|||
context 'when ip is not allowed' do
|
||||
specify do
|
||||
get registrar_login_path
|
||||
expect(response).to be_forbidden
|
||||
expect(response.body).to match "Access denied"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue