mirror of
https://github.com/supabase/supabase.git
synced 2026-12-05 07:59:03 +00:00
## Context For the Temporary database access feature preview, non project owners/admins are unable to view or manage the JIT db access section, but we currently don't guard properly against that. So this PR addresses this by showing an Admonition instead + guard the relevant react queries against the perms check to prevent unnecessary calls. We were also using `FGA_PERMISSIONS.PROJECT.ADMIN_WRITE` incorrectly as there's `FGA_PERMISSIONS.PROJECT.DATABASE_JIT_WRITE` that we can use ### Before <img width="788" height="602" alt="image" src="https://github.com/user-attachments/assets/90458c5a-5994-4812-abe1-17f0d3782f70" /> ### After <img width="836" height="284" alt="image" src="https://github.com/user-attachments/assets/ba08aa55-6b2a-49e5-8fc0-709c7b41cd72" />