Skip to content

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

fix: restore rls check (#45723)

Vaibhavef2d21b9bfd8
diff --git a/apps/studio/components/interfaces/Auth/Policies/PolicyEditorPanel/index.tsx b/apps/studio/components/interfaces/Auth/Policies/PolicyEditorPanel/index.tsx
index 9ebe0d7cf16..310a20027f5 100644
--- a/apps/studio/components/interfaces/Auth/Policies/PolicyEditorPanel/index.tsx
+++ b/apps/studio/components/interfaces/Auth/Policies/PolicyEditorPanel/index.tsx
@@ -288,7 +288,10 @@ export const PolicyEditorPanel = memo(function ({
}
if (selectedPolicy.check) {
if (selectedPolicy.command === 'INSERT') setUsing(safeSql` ${selectedPolicy.check}`)
- else setCheck(safeSql` ${selectedPolicy.check}`)
+ else {
+ setCheck(safeSql` ${selectedPolicy.check}`)
+ setShowCheckBlock(true)
+ }
}
setRolesFragment(