From 7e672e5c710ab92d801bcd07abb6b83bf088d492 Mon Sep 17 00:00:00 2001 From: Muhsin Keloth Date: Thu, 12 Jun 2025 14:18:26 +0530 Subject: [PATCH] Update app.rb --- app/models/integrations/app.rb | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/app/models/integrations/app.rb b/app/models/integrations/app.rb index eaf6ec3cf..89c9691d5 100644 --- a/app/models/integrations/app.rb +++ b/app/models/integrations/app.rb @@ -68,12 +68,10 @@ class Integrations::App config = INTEGRATION_CONFIGS[params[:id]] return true unless config - checks = [ - config[:feature_flag] ? account.feature_enabled?(config[:feature_flag]) : true, - config[:config_key] ? GlobalConfigService.load(config[:config_key], nil).present? : true - ] + feature_enabled = config[:feature_flag].nil? || account.feature_enabled?(config[:feature_flag]) + config_present = config[:config_key].nil? || GlobalConfigService.load(config[:config_key], nil).present? - checks.all? + feature_enabled && config_present end def build_linear_action