Remove reduntant test, fix REPP text

This commit is contained in:
Martin Lensment 2015-05-20 17:25:09 +03:00
parent e27132bab7
commit 865e0adef8
5 changed files with 7 additions and 15 deletions

View file

@ -8,7 +8,7 @@ module Repp
end
before do
unless Rails.env.development?
if request.ip != ENV['webclient_ip']
error! I18n.t('ip_is_not_whitelisted'), 401 unless @current_user.registrar.repp_ip_white?(request.ip)
end