From 9d591b8f4655660c4f5d4e058076744d5ac9bc47 Mon Sep 17 00:00:00 2001 From: Sojan Jose Date: Mon, 1 Jun 2026 14:02:03 +0530 Subject: [PATCH] feat: enable companies for Business cloud plans (#14598) Enable the Companies feature automatically for Chatwoot Cloud accounts on the Business plan and higher. ## Closes None. ## How to test Upgrade or reconcile a Cloud account on Business or Enterprise and verify Companies is available. Reconcile a Startups account and verify Companies remains disabled. ## What changed - Added companies to the Business plan feature set, which Enterprise inherits through the existing hierarchy. - Added billing specs that assert Companies is disabled for Startups and enabled for Business and Enterprise. --- .../billing/reconcile_plan_features_service.rb | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/enterprise/app/services/enterprise/billing/reconcile_plan_features_service.rb b/enterprise/app/services/enterprise/billing/reconcile_plan_features_service.rb index b9c3f6856..a6f76f6b5 100644 --- a/enterprise/app/services/enterprise/billing/reconcile_plan_features_service.rb +++ b/enterprise/app/services/enterprise/billing/reconcile_plan_features_service.rb @@ -19,7 +19,15 @@ class Enterprise::Billing::ReconcilePlanFeaturesService channel_voice ].freeze - BUSINESS_PLAN_FEATURES = %w[sla custom_roles csat_review_notes conversation_required_attributes advanced_assignment custom_tools].freeze + BUSINESS_PLAN_FEATURES = %w[ + sla + custom_roles + csat_review_notes + conversation_required_attributes + advanced_assignment + custom_tools + companies + ].freeze ENTERPRISE_PLAN_FEATURES = %w[audit_logs disable_branding saml].freeze PREMIUM_PLAN_FEATURES = (STARTUP_PLAN_FEATURES + BUSINESS_PLAN_FEATURES + ENTERPRISE_PLAN_FEATURES).freeze