mirror of
https://github.com/supabase/supabase.git
synced 2026-10-10 11:55:05 +03:00
RequestUpgradeToBillingOwners now checks the requested plan against the viewer's current plan and renders a disabled state when the request would be a downgrade or no-op. This protects every callsite: the plan switcher (previously offered 'Request upgrade to Free' to higher-tier members), the log-drains empty state (hardcoded 'Pro' showing to Team members), the billing-metric paywall, and the custom-auth-providers fallback path. Addon-flavored requests (compute size, PITR, custom domain, IPv4, spend cap) bypass the guard because they are about feature add-ons, not plan tier changes.