## Problem
The project permissions table on the access control page lists Read and
Write for the production branch, but not Delete. Readers can't tell
whether a Developer can delete the production branch, though the table
shows that one can delete development branches.
Related to
[FDBKIN-36106](https://linear.app/supabase/issue/FDBKIN-36106/clarify-docs-on-branch-deletion-behavior-with-rbac-for-different-user)
Closes
[DOCS-1760](https://linear.app/supabase/issue/DOCS-1760/show-which-roles-can-delete-the-production-branch-in-the-project)
## Solution
The Branching rows on the Access Control page now have a Delete
permission for the production branch. Only Owner and Administrator can
use it. This matches the minimum role that the authorization model sets
for deleting the production branch. The other rows and the footnotes
stay the same.
## How to verify
1. Open `/docs/guides/platform/access-control#branching-permissions` on
the preview.
2. Under Production Branch, a Delete row shows a check for Owner and
Administrator and a cross for Developer and Read-Only.
3. The Development Branches rows (List, Create, Update, Delete) and the
footnotes read as before.
4. The new row has the same columns and icons as the rows around it.
## Checks
Ran `pnpm turbo run typecheck --filter='...[origin/master]'`, `pnpm
turbo run lint --filter='[origin/master]'`, and `pnpm exec oxfmt
--check` on the changed file. All passed. I checked the roles against
`branching_production_delete: 'administrator'` in
`apps/studio/components/interfaces/Account/AccessTokens/AccessToken.roles.ts`
and against the delete-branch endpoint requirements in
`packages/api-types/types/fga-requirements.ts`. I skipped the docs tests
because they need Docker.
## Checklist
- [x] I have read the [contributing
guidelines](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md).
- [x] The PR title follows the Conventional Commits format.
- [x] The change is limited to the scope described above.
## Feedback for Tedd
To ask Tedd for a change to this PR, reply in Tedd's session on
[DOCS-1760](https://linear.app/supabase/issue/DOCS-1760/show-which-roles-can-delete-the-production-branch-in-the-project).
Tedd doesn't read comments on this PR.
Co-authored-by: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com>
Just being extra cautious to make it clear that developer role has full
content access.
Previous wording could be interpreted as read access to content.
Co-authored-by: Nik Richers <nrichers@gmail.com>
## I have read the
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
file.
YES
## What kind of change does this PR introduce?
Docs update
## What is the current behavior?
The access-control permissions matrix shows Developer-role users can
create development branches, but doesn't mention the implicit
production-branch registration step that runs on the first "Create
branch" click for a gitless project — which is
Owner/Administrator only. Customers reading the matrix conclude
Developers can branch from the start; in reality, an
Owner/Administrator has to perform the first branch creation to register
the production branch.
## What is the new behavior?
Adds a footnote on the "Development Branches → Create" row that flags
the one-time first-branch admin requirement and links to the
dashboard branching guide for the full explanation. Short cross-link
only — long-form mechanism explanation lives on the dashboard
branching guide (companion PR #46471).
## Additional context
- Companion PR adding the long-form admonition on the branching guide
page: #46471
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Documentation**
* Clarified branching permissions for dashboard (gitless) workflows: the
first branch creation (one-time) without a GitHub integration requires
Owner or Administrator to register the production branch; after that
initial step, Developers may create, update, and delete branches as
normal.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
---------
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-authored-by: Chris Chinchilla <chris@chrischinchilla.com>
fixes the SMTP settings permission in the Access Control docs
<img width="879" height="82" alt="image"
src="https://github.com/user-attachments/assets/75fac0b6-f0c7-4464-b61e-0c17ff91dc74"
/>
## ref:
- closes https://github.com/supabase/supabase/issues/45088
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
## Documentation
* Improved table formatting in access control documentation for better
visual consistency and clarity.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This PR fixes some prettier issues:
- Bump and unify all prettier versions to 3.7.3 across teh whole repo
- Bump the SQL prettier plugin
- When running `test:prettier`, check `mdx` files also
- Run the new prettier format on all files
---------
Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
* fix: rewrite relative URLs when syncing to GitHub discussion
Relative URLs back to supabse.com won't work in GitHub discussions, so
rewrite them back to absolute URLs starting with https://supabase.com
* fix: replace all supabase urls with relative urls
* chore: add linting for relative urls
* chore: bump linter version
* Prettier
---------
Co-authored-by: Chris Chinchilla <chris.ward@supabase.io>
* chore: clarify read-only role database permissions
Access control docs list the dashboard and API permissions for the
read-only role. These are distinct from the database permissions, which
are fully read-only.
* fix: spelling