Skip to content

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

Improve clarity of RLS in auth policies page

Joshen Lim455e2684f40a
diff --git a/studio/components/interfaces/Auth/Policies/PolicyTableRow/index.tsx b/studio/components/interfaces/Auth/Policies/PolicyTableRow/index.tsx
index b3f53cd0df6..5caf05d60fe 100644
--- a/studio/components/interfaces/Auth/Policies/PolicyTableRow/index.tsx
+++ b/studio/components/interfaces/Auth/Policies/PolicyTableRow/index.tsx
@@ -39,8 +39,13 @@ const PolicyTableRow: FC<Props> = ({
}
>
{policies.length === 0 && (
- <div className="p-4 px-6">
- <p className="text-scale-900 text-sm">No policies created yet</p>
+ <div className="p-4 px-6 space-y-1">
+ <p className="text-scale-1100 text-sm">No policies created yet</p>
+ {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.
+ </p>
+ )}
</div>
)}