Add some debug messages

This commit is contained in:
Alex Sherman 2020-11-23 18:07:01 +05:00
parent f01e59d95a
commit 3943628716
3 changed files with 13 additions and 5 deletions

View file

@ -14,7 +14,9 @@ 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