mirror of
https://github.com/supabase/supabase.git
synced 2026-12-05 16:09:06 +00:00
## Problem Project-scoped admins see "You need additional permissions to view GitHub connections" (and the same for Vercel) since #50966. That PR moved these checks to `ORGANIZATION.CONFIG_READ`/`CONFIG_WRITE`, which the v2 permissions API never grants to project-scoped members. ## Fix The platform endpoints behind these views don't use OpenFGA: - GitHub connections: list/update/delete are RLS-only; create uses `canForProjectRef(READ, 'projects')` - Vercel connections: create uses `canForProjectRef(CREATE, 'integrations.vercel_connections')`; the rest are RLS-only - OAuth apps (installed integrations view): `AuthWithOrganizationSlug(READ, 'oauth_apps')` So this reverts #50966's changes in `GithubSection`, `GitHubIntegrationConnectionForm`, `VercelSection`, `Landing.utils` and `useInstalledIntegrations` back to `useAsyncCheckPermissions` with the original resources, and updates `MarketplaceIntegrationSettingsTab.test.tsx` to mock the v1 permissions endpoint. ## Testing - `MarketplaceIntegrationSettingsTab.test.tsx` and `MarketplaceDetail.test.tsx` pass Fixes FE-4751