Add whitelist mode (#11291)
This commit is contained in:
@ -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