0
0
Fork 0

Add InetContainer with scopes of containing and contained (#32802)

This commit is contained in:
Matt Jankowski 2024-11-08 05:08:36 -05:00 committed by GitHub
parent df54196a14
commit bde0f1239a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 18 additions and 6 deletions

View file

@ -16,6 +16,6 @@ module RegistrationHelper
end
def ip_blocked?(remote_ip)
IpBlock.where(severity: :sign_up_block).exists?(['ip >>= ?', remote_ip.to_s])
IpBlock.where(severity: :sign_up_block).containing(remote_ip.to_s).exists?
end
end