diff --git a/app/controllers/registrar/base_controller.rb b/app/controllers/registrar/base_controller.rb index c91f2e075..d2b2edd69 100644 --- a/app/controllers/registrar/base_controller.rb +++ b/app/controllers/registrar/base_controller.rb @@ -16,7 +16,7 @@ class Registrar sign_out(current_user) return end - return if Rails.env.development? + registrar_ip_whitelisted = current_user.registrar.registrar_ip_white?(request.ip) return if registrar_ip_whitelisted diff --git a/app/controllers/registrar/sessions_controller.rb b/app/controllers/registrar/sessions_controller.rb index 4209270d8..a9317e701 100644 --- a/app/controllers/registrar/sessions_controller.rb +++ b/app/controllers/registrar/sessions_controller.rb @@ -186,7 +186,6 @@ class Registrar private def check_ip - return if Rails.env.development? return if WhiteIp.registrar_ip_white?(request.ip) render :denied, :layout => false, status: :forbidden, :locals => { :ip => request.ip } and return end