From 2a7e27856586fbccc05f0c86ba77f49bfc383442 Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Wed, 13 Jul 2022 14:23:20 +0200 Subject: [PATCH] fix(client): hide bot protection warning with disabled registrations (#8794) * fix(client): hide bot protection warning with disabled registrations * Apply review suggestion from @Johann150 Co-authored-by: Johann150 Co-authored-by: Johann150 Co-authored-by: syuilo --- packages/client/src/pages/admin/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/client/src/pages/admin/index.vue b/packages/client/src/pages/admin/index.vue index 20d6aca88..3e796b1a7 100644 --- a/packages/client/src/pages/admin/index.vue +++ b/packages/client/src/pages/admin/index.vue @@ -59,7 +59,7 @@ let view = $ref(null); let el = $ref(null); let pageProps = $ref({}); let noMaintainerInformation = isEmpty(instance.maintainerName) || isEmpty(instance.maintainerEmail); -let noBotProtection = !instance.enableHcaptcha && !instance.enableRecaptcha; +let noBotProtection = !instance.disableRegistration && !instance.enableHcaptcha && !instance.enableRecaptcha; let noEmailServer = !instance.enableEmail; let thereIsUnresolvedAbuseReport = $ref(false);