This commit is contained in:
Alex Sherman 2020-11-24 13:19:08 +05:00
parent 3943628716
commit 708e87f5a7
3 changed files with 5 additions and 12 deletions

View file

@ -14,9 +14,7 @@ module Authorization
end
def can_access_registrar_area_sign_in_page?
Rails.logger.info "Checking if Auth::RestrictedIp.enabled: #{self.class.enabled?}"
return true unless self.class.enabled?
Rails.logger.info "Checking if registrar area accessible, result: #{WhiteIp.registrar_area.include_ip?(ip)}"
WhiteIp.registrar_area.include_ip?(ip)
end