Merge repp, epp in IP whitelist

This commit is contained in:
Martin Lensment 2015-05-20 18:47:57 +03:00
parent de60ad8e76
commit df47e21086
7 changed files with 11 additions and 26 deletions

View file

@ -37,7 +37,7 @@ class Epp::SessionsController < EppController
def ip_white?
return true if request.ip == ENV['webclient_ip']
if @api_user
unless @api_user.registrar.epp_ip_white?(request.ip)
unless @api_user.registrar.api_ip_white?(request.ip)
@msg = t('ip_is_not_whitelisted')
return false
end