Fix blocking subdomains of an already-blocked domain (#26392)
This commit is contained in:
parent
2e0eab9d18
commit
e37551421e
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ module Admin
|
|||
@domain_block.errors.delete(:domain)
|
||||
render :new
|
||||
else
|
||||
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.update(resource_params)
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue