Add whitelist mode (#11291)

This commit is contained in:
Eugen Rochko authored and GitHub committed 2019-07-30 11:10:46 +02:00
1 parent 85b7b565de
commit 24552b5160
44 files changed
+302 -53

No files matched your search

+9 -1
View File
@@ -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