Skip to content
Snippets Groups Projects
Unverified Commit 6aef76b5 authored by Claire's avatar Claire Committed by GitHub
Browse files

Fix error when a MX is shared across blocked domains (#17650)

parent 3d607085
No related branches found
No related tags found
No related merge requests found
......@@ -38,6 +38,8 @@ module Admin
log_action :create, @email_domain_block
(@email_domain_block.other_domains || []).uniq.each do |domain|
next if EmailDomainBlock.where(domain: domain).exists?
other_email_domain_block = EmailDomainBlock.create!(domain: domain, parent: @email_domain_block)
log_action :create, other_email_domain_block
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment