Do not check environment on IP whitelist verification

#600
This commit is contained in:
Artur Beljajev 2017-09-29 14:53:22 +03:00
parent 1493cb8700
commit d7f1aee47b
2 changed files with 1 additions and 2 deletions

View file

@ -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