Add InetContainer
with scopes of containing
and contained
(#32802)
This commit is contained in:
parent
df54196a14
commit
bde0f1239a
7 changed files with 18 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue