Fix ok/inactive state, get disclosable fields strictly from Contact class

This commit is contained in:
Karl Erik Õunapuu 2021-01-05 15:59:00 +02:00
parent bc69e05c91
commit b534827dc5
No known key found for this signature in database
GPG key ID: C9DD647298A34764
2 changed files with 2 additions and 2 deletions

View file

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