Skip to content

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

Updates based as per PR comments

Joshen Lim17aa997ffe60
diff --git a/studio/components/interfaces/Auth/Policies/Policies.tsx b/studio/components/interfaces/Auth/Policies/Policies.tsx
index 81669a1a6f5..550bd59f740 100644
--- a/studio/components/interfaces/Auth/Policies/Policies.tsx
+++ b/studio/components/interfaces/Auth/Policies/Policies.tsx
@@ -137,7 +137,7 @@ const Policies: FC<Props> = ({ tables, hasTables, isLocked }) => {
<div className="flex-grow">
<ProductEmptyState
size="large"
- title="Postgres Policies"
+ title="Row-Level Security (RLS) Policies"
ctaButtonLabel="Create a table"
infoButtonLabel="What is RLS?"
infoButtonUrl="https://supabase.com/docs/guides/auth/row-level-security"
@@ -161,8 +161,7 @@ const Policies: FC<Props> = ({ tables, hasTables, isLocked }) => {
}
/>
<p className="text-sm text-scale-1100">
- A table within this schema is required before you can create a Row-Level Security
- policy.
+ Create a table in this schema first before creating a policy.
</p>
</div>
</ProductEmptyState>
diff --git a/studio/components/interfaces/Auth/Policies/PolicyTableRow/index.tsx b/studio/components/interfaces/Auth/Policies/PolicyTableRow/index.tsx
index 5caf05d60fe..b9eafb7e119 100644
--- a/studio/components/interfaces/Auth/Policies/PolicyTableRow/index.tsx
+++ b/studio/components/interfaces/Auth/Policies/PolicyTableRow/index.tsx
@@ -41,9 +41,13 @@ const PolicyTableRow: FC<Props> = ({
{policies.length === 0 && (
<div className="p-4 px-6 space-y-1">
<p className="text-scale-1100 text-sm">No policies created yet</p>
- {table.rls_enabled && (
+ {table.rls_enabled ? (
<p className="text-scale-1000 text-sm">
- As RLS has been enabled, all normal access to this table must be allowed by a policy.
+ RLS is enabled - create a policy to allow access to this table.
+ </p>
+ ) : (
+ <p className="text-amber-900 text-sm opacity-50">
+ Warning: RLS is disabled - anonymous access is allowed to this table
</p>
)}
</div>