mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-22 04:48:06 +01:00
Use enum-generated IpBlock.severity...
scopes (#31210)
This commit is contained in:
parent
10c895dc84
commit
1e71c4e247
1 changed files with 1 additions and 1 deletions
|
@ -16,6 +16,6 @@ module RegistrationHelper
|
|||
end
|
||||
|
||||
def ip_blocked?(remote_ip)
|
||||
IpBlock.where(severity: :sign_up_block).containing(remote_ip.to_s).exists?
|
||||
IpBlock.severity_sign_up_block.containing(remote_ip.to_s).exists?
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue