mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 23:49:34 +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:

committed by
GitHub

parent
5077cf52fd
commit
e0d9232259
@ -212,7 +212,7 @@ RSpec.describe SessionController do
|
||||
action_type: ScreenedIpAddress.actions[:allow_admin]
|
||||
)
|
||||
|
||||
SiteSetting.use_admin_ip_whitelist = true
|
||||
SiteSetting.use_admin_ip_allowlist = true
|
||||
user.update!(admin: true)
|
||||
end
|
||||
|
||||
@ -1614,7 +1614,7 @@ RSpec.describe SessionController do
|
||||
|
||||
context 'when admins are restricted by ip address' do
|
||||
before do
|
||||
SiteSetting.use_admin_ip_whitelist = true
|
||||
SiteSetting.use_admin_ip_allowlist = true
|
||||
ScreenedIpAddress.all.destroy_all
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user