From 23f90cc899e8e23ad5d0ec9ee7aaa69daebaafc9 Mon Sep 17 00:00:00 2001 From: Ignacio Dobronich Date: Tue, 31 Mar 2026 12:32:52 -0300 Subject: [PATCH] fix: remove plan checks from SSO Config Query (#44394) `useOrgSSOConfigQuery` had an internal plan-based gate (`canSetupSSOConfig`) that permanently disabled the query for non-team/enterprise orgs. The fix removes the redundant plan gate from the query hook, plan-based access is already controlled upstream via the entitlement check in the component. --- apps/studio/data/sso/sso-config-query.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/apps/studio/data/sso/sso-config-query.ts b/apps/studio/data/sso/sso-config-query.ts index 1892cd8a472..564f35c02f4 100644 --- a/apps/studio/data/sso/sso-config-query.ts +++ b/apps/studio/data/sso/sso-config-query.ts @@ -42,14 +42,10 @@ export const useOrgSSOConfigQuery = ( ...options }: UseCustomQueryOptions = {} ) => { - const { data: organization } = useSelectedOrganizationQuery() - const plan = organization?.plan.id - const canSetupSSOConfig = ['team', 'enterprise', 'platform'].includes(plan ?? '') - return useQuery({ queryKey: orgSSOKeys.orgSSOConfig(orgSlug), queryFn: ({ signal }) => getOrgSSOConfig({ orgSlug }, signal), - enabled: enabled && IS_PLATFORM && typeof orgSlug !== 'undefined' && canSetupSSOConfig, + enabled: enabled && IS_PLATFORM && typeof orgSlug !== 'undefined', ...options, }) }