mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 06:41:25 +08:00
FIX: do not block registration for whitelisted IP address
This commit is contained in:
@ -16,6 +16,9 @@ class SpamHandler
|
||||
|
||||
return false if staff_members_with_same_ip > 0
|
||||
|
||||
ip_whitelisted = ScreenedIpAddress.is_whitelisted?(ip_address)
|
||||
return false if ip_whitelisted
|
||||
|
||||
tl0_accounts_with_same_ip = User.unscoped
|
||||
.where(trust_level: TrustLevel[0])
|
||||
.where(ip_address: ip_address.to_s)
|
||||
|
Reference in New Issue
Block a user