Fix blocking subdomains of an already-blocked domain (#26392)
This commit is contained in:
parent
dab54ccbba
commit
b12d75ef4f
2 changed files with 25 additions and 1 deletions
|
@ -40,7 +40,7 @@ module Admin
|
|||
end
|
||||
|
||||
# Allow transparently upgrading a domain block
|
||||
if existing_domain_block.present?
|
||||
if existing_domain_block.present? && existing_domain_block.domain == TagManager.instance.normalize_domain(@domain_block.domain.strip)
|
||||
@domain_block = existing_domain_block
|
||||
@domain_block.assign_attributes(resource_params)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue