Rename error message

This commit is contained in:
Martin Lensment 2015-05-20 19:20:03 +03:00
parent 8371dcf46e
commit b39c3ab262
5 changed files with 6 additions and 8 deletions

View file

@ -13,7 +13,7 @@ class RegistrarController < ApplicationController
def check_ip
return unless current_user
return if current_user.registrar.registrar_ip_white?(request.ip)
flash[:alert] = t('ip_is_not_whitelisted')
flash[:alert] = t('access_denied')
sign_out(current_user)
redirect_to registrar_login_path and return
end