Files
supabase/apps
Pamela Chia 3fc23db748 fix(billing): block downgrade requests at the component level
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.
2026-05-12 02:38:54 +08:00
..