From 39a6485c2a1ea9d4561887c9f4026d10e99cd9db Mon Sep 17 00:00:00 2001 From: Muhsin Keloth Date: Thu, 12 Jun 2025 12:55:04 +0530 Subject: [PATCH] Update app.rb --- app/models/integrations/app.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/models/integrations/app.rb b/app/models/integrations/app.rb index 32b3fc36d..03d110cec 100644 --- a/app/models/integrations/app.rb +++ b/app/models/integrations/app.rb @@ -53,8 +53,7 @@ class Integrations::App def active?(account) case params[:id] when 'slack' - client_id = GlobalConfigService.load('SLACK_CLIENT_ID', nil) - "#{params[:action]}&client_id=#{client_id}&redirect_uri=#{self.class.slack_integration_url}" + GlobalConfigService.load('SLACK_CLIENT_SECRET', nil).present? when 'linear' GlobalConfigService.load('LINEAR_CLIENT_ID', nil).present? when 'shopify'