The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Chore/realtime policies (#30552)
Terry Suttonc931e3001aeb
diff --git a/apps/studio/components/interfaces/Auth/Policies/PolicyTableRow/PolicyRow.tsx b/apps/studio/components/interfaces/Auth/Policies/PolicyTableRow/PolicyRow.tsxindex 9e67d6764e9..5f75945624d 100644--- a/apps/studio/components/interfaces/Auth/Policies/PolicyTableRow/PolicyRow.tsx+++ b/apps/studio/components/interfaces/Auth/Policies/PolicyTableRow/PolicyRow.tsx@@ -33,7 +33,7 @@ interface PolicyRowProps {const PolicyRow = ({policy,- isLocked,+ isLocked: isLockedDefault,onSelectEditPolicy = noop,onSelectDeletePolicy = noop,}: PolicyRowProps) => {@@ -44,6 +44,10 @@ const PolicyRow = ({const { project } = useProjectContext()const { data: authConfig } = useAuthConfigQuery({ projectRef: project?.ref })+ // override islocked for Realtime messages table+ const isLocked =+ policy.schema === 'realtime' && policy.table === 'messages' ? false : isLockedDefault+// TODO(km): Simple check for roles that allow authenticated access.// In the future, we'll use splinter to return proper warnings for policies that allow anonymous user access.const appliesToAnonymousUsers =