Add whitelist mode (#11291)
This commit is contained in:
1 parent
85b7b565de
commit
24552b5160
44 files changed
+302
-53
No files matched your search
@@ -12,6 +12,14 @@ module DomainControlHelper
|
||||
end
|
||||
end
|
||||
|
||||
DomainBlock.blocked?(domain)
|
||||
if whitelist_mode?
|
||||
!DomainAllow.allowed?(domain)
|
||||
else
|
||||
DomainBlock.blocked?(domain)
|
||||
end
|
||||
end
|
||||
|
||||
def whitelist_mode?
|
||||
Rails.configuration.x.whitelist_mode
|
||||
end
|
||||
end
|
||||
Reference in new issue
Block a user