0
0
Fork 0

Fix nil error when viewing suspended domain in admin UI (#17765)

This commit is contained in:
Eugen Rochko 2022-03-14 05:27:37 +01:00 committed by GitHub
parent 74f406cfc9
commit 5db1f377ea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View file

@ -32,8 +32,12 @@ class Instance < ApplicationRecord
@delivery_failure_tracker ||= DeliveryFailureTracker.new(domain)
end
def purgeable?
unavailable? || domain_block&.suspend?
end
def unavailable?
unavailable_domain.present? || domain_block&.suspend?
unavailable_domain.present?
end
def failing?