about summary refs log tree commit diff
path: root/app/models
diff options
context:
space:
mode:
authorJeong Arm <kjwonmail@gmail.com>2022-03-11 12:58:09 +0900
committerGitHub <noreply@github.com>2022-03-11 04:58:09 +0100
commit18e27e04887ee6357f6bd5f420473f910f1721b3 (patch)
treec91caa680fbfdd3dcea23831972838d8628b87c0 /app/models
parent64d2988d18395b76e3a9af33b7041c465a554e7d (diff)
Enable domain purge button on suspended domains too (#17741)
Related: #17209
Diffstat (limited to 'app/models')
-rw-r--r--app/models/instance.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/instance.rb b/app/models/instance.rb
index 7434d3322..c01c23077 100644
--- a/app/models/instance.rb
+++ b/app/models/instance.rb
@@ -33,7 +33,7 @@ class Instance < ApplicationRecord
   end
 
   def unavailable?
-    unavailable_domain.present?
+    unavailable_domain.present? || domain_block&.suspend?
   end
 
   def failing?