Refactor: replace whitelist_mode mentions with limited_federation_mode (#26252)
This commit is contained in:
parent
8891d8945d
commit
e258b4cb64
33 changed files with 57 additions and 55 deletions
|
@ -10,14 +10,14 @@ module DomainControlHelper
|
|||
uri_or_domain
|
||||
end
|
||||
|
||||
if whitelist_mode?
|
||||
if limited_federation_mode?
|
||||
!DomainAllow.allowed?(domain)
|
||||
else
|
||||
DomainBlock.blocked?(domain)
|
||||
end
|
||||
end
|
||||
|
||||
def whitelist_mode?
|
||||
Rails.configuration.x.whitelist_mode
|
||||
def limited_federation_mode?
|
||||
Rails.configuration.x.limited_federation_mode
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue