mirror of
https://github.com/internetee/registry.git
synced 2025-06-10 06:34:46 +02:00
Make domain unavailable when zone with the same origin exists
This commit is contained in:
parent
ee864c807f
commit
d40dc28484
5 changed files with 41 additions and 3 deletions
|
@ -805,8 +805,8 @@ class Epp::Domain < Domain
|
|||
domain_name = DNS::DomainName.new(domain_name_as_string)
|
||||
|
||||
if domain_name.unavailable?
|
||||
reason = domain_name.unavailability_reason
|
||||
result << { name: domain_name_as_string, avail: 0, reason: I18n.t("errors.messages.epp_domain_#{reason}") }
|
||||
reason = I18n.t("errors.messages.epp_domain_#{domain_name.unavailability_reason}")
|
||||
result << { name: domain_name_as_string, avail: 0, reason: reason }
|
||||
next
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue