mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
FIX: use allowlist and blocklist terminology (#10209)
This is a PR of the renaming whitelist to allowlist and blacklist to the blocklist.
This commit is contained in:
parent
5077cf52fd
commit
e0d9232259
130 changed files with 676 additions and 570 deletions
|
@ -17,8 +17,8 @@ class SpamHandler
|
|||
|
||||
return false if staff_members_with_same_ip > 0
|
||||
|
||||
ip_whitelisted = ScreenedIpAddress.is_whitelisted?(ip_address)
|
||||
return false if ip_whitelisted
|
||||
allowed_ip = ScreenedIpAddress.is_allowed?(ip_address)
|
||||
return false if allowed_ip
|
||||
|
||||
tl0_accounts_with_same_ip = User.unscoped
|
||||
.where(trust_level: TrustLevel[0])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue