mirror of
https://github.com/internetee/registry.git
synced 2025-08-04 00:42:04 +02:00
Fix ok/inactive state, get disclosable fields strictly from Contact class
This commit is contained in:
parent
bc69e05c91
commit
b534827dc5
2 changed files with 2 additions and 2 deletions
|
@ -574,7 +574,7 @@ class Domain < ApplicationRecord
|
|||
|
||||
if statuses.empty? && valid?
|
||||
statuses << DomainStatus::OK
|
||||
elsif (statuses.length > 1 && active?) || !valid?
|
||||
elsif (statuses.length > 1) || !valid?
|
||||
statuses.delete(DomainStatus::OK)
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue