mirror of
https://github.com/internetee/registry.git
synced 2025-07-14 06:55:11 +02:00
parent
c6bd590b38
commit
ff466e57ac
2 changed files with 8 additions and 8 deletions
|
@ -153,9 +153,9 @@ class Registrar
|
|||
ip_restriction = Authorization::RestrictedIP.new(request.ip)
|
||||
allowed = ip_restriction.can_access_registrar_area_sign_in_page?
|
||||
|
||||
unless allowed
|
||||
render text: t('registrar.authorization.ip_not_allowed', ip: request.ip), status: :forbidden
|
||||
end
|
||||
return if allowed
|
||||
|
||||
render text: t('registrar.authorization.ip_not_allowed', ip: request.ip), status: :forbidden
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue