From 18e27e04887ee6357f6bd5f420473f910f1721b3 Mon Sep 17 00:00:00 2001 From: Jeong Arm Date: Fri, 11 Mar 2022 12:58:09 +0900 Subject: [PATCH] Enable domain purge button on suspended domains too (#17741) Related: #17209 --- app/models/instance.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/instance.rb b/app/models/instance.rb index 7434d3322bb..c01c23077ff 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?