Browse Source

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

closed-social-glitch-2
Claire 2 years ago
committed by GitHub
parent
commit
6aef76b5cd
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      app/controllers/admin/email_domain_blocks_controller.rb

+ 2
- 0
app/controllers/admin/email_domain_blocks_controller.rb View File

@ -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

Loading…
Cancel
Save