Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

feat: expose project perms to team plan (#35007)

Kevin Grüneberg173cc56e719e
diff --git a/apps/docs/content/guides/platform/access-control.mdx b/apps/docs/content/guides/platform/access-control.mdx
index 3105797415c..c3e9bb8ba43 100644
--- a/apps/docs/content/guides/platform/access-control.mdx
+++ b/apps/docs/content/guides/platform/access-control.mdx
@@ -42,7 +42,7 @@ Otherwise, you'll need to invite a user as **Owner**, and they need to accept th
<Admonition type="note">
-Project scoped roles are only available on the [Enterprise Plan](https://supabase.com/pricing)
+Project scoped roles are only available on the [Team and Enterprise plans](https://supabase.com/pricing).
</Admonition>
@@ -261,7 +261,7 @@ The table below shows the actions each role can take on the resources belonging
[^1]: Available on the Team and Enterprise Plans.
[^2]: Sending anonymous data to OpenAI is opt in and can improve Studio AI Assistant's responses.
[^3]: Invites sent from a SSO account can only be accepted by another SSO account coming from the same identity provider. This is a security measure that prevents accidental invites to accounts not managed by your company's enterprise systems.
-[^4]: Available on the Enterprise Plan.
+[^4]: Available on the Team and Enterprise Plans.
[^5]: Read-Only role is able to access secrets.
[^6]: Listed permissions are for the API and Dashboard.
[^7]: Limited to executing SELECT queries. SQL Query Snippets run by the Read-Only role are run against the database using the **supabase_read_only_user**. This role has the [predefined Postgres role pg_read_all_data](https://www.postgresql.org/docs/current/predefined-roles.html).
diff --git a/apps/studio/data/subscriptions/org-subscription-query.ts b/apps/studio/data/subscriptions/org-subscription-query.ts
index ee6657fd33a..94d0edcaa93 100644
--- a/apps/studio/data/subscriptions/org-subscription-query.ts
+++ b/apps/studio/data/subscriptions/org-subscription-query.ts
@@ -58,5 +58,5 @@ export const useOrgSubscriptionQuery = <TData = OrgSubscriptionData>(
export const useHasAccessToProjectLevelPermissions = (slug: string) => {
const { data: subscription } = useOrgSubscriptionQuery({ orgSlug: slug })
- return subscription?.plan.id === 'enterprise'
+ return subscription?.plan.id === 'enterprise' || subscription?.plan.id === 'team'
}
diff --git a/packages/shared-data/plans.ts b/packages/shared-data/plans.ts
index e415fb670fa..9ed27213f62 100644
--- a/packages/shared-data/plans.ts
+++ b/packages/shared-data/plans.ts
@@ -113,8 +113,8 @@ export const plans: PricingInformation[] = [
partners: [],
features: [
'SOC2',
+ 'Project-scoped and read-only access',
'HIPAA available as paid add-on',
- 'Read-only and Billing member roles',
'SSO for Supabase Dashboard',
'Priority email support & SLAs',
'Daily backups stored for 14 days',
diff --git a/packages/shared-data/pricing.ts b/packages/shared-data/pricing.ts
index 1bb453eb2d9..9df96c552d7 100644
--- a/packages/shared-data/pricing.ts
+++ b/packages/shared-data/pricing.ts
@@ -659,7 +659,7 @@ export const pricing: Pricing = {
plans: {
free: 'Owner, Admin, Developer',
pro: 'Owner, Admin, Developer',
- team: 'Owner, Admin, Developer, Read-only',
+ team: 'Owner, Admin, Developer, Read-only, Predefined project scoped roles',
enterprise: 'Custom project scoped roles',
},
usage_based: false,