Skip to content

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

Add more details to RLS description in table editor

Joshen Lim6e3892a478e0
diff --git a/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/TableEditor.tsx b/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/TableEditor.tsx
index 70596281882..132492782c4 100644
--- a/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/TableEditor.tsx
+++ b/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/TableEditor.tsx
@@ -203,7 +203,14 @@ const TableEditor: FC<Props> = ({
<Badge color="gray">Recommended</Badge>
</div>
}
- description="Restrict access to your table by enabling RLS and writing Postgres policies"
+ // @ts-ignore
+ description={
+ <>
+ Restrict access to your table by enabling RLS and writing Postgres policies.
+ <br />
+ If RLS is not enabled, anyone with the anon key can modify and delete your data.
+ </>
+ }
checked={tableFields.isRLSEnabled}
onChange={() => onUpdateField({ isRLSEnabled: !tableFields.isRLSEnabled })}
size="medium"