Skip to content

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

Update access-control.mdx to fix missing () and cast to text (#19083)

GaryAustin12a4e4442b0ae
diff --git a/apps/docs/pages/guides/storage/security/access-control.mdx b/apps/docs/pages/guides/storage/security/access-control.mdx
index 5ab691f8363..ccaa9aa2712 100644
--- a/apps/docs/pages/guides/storage/security/access-control.mdx
+++ b/apps/docs/pages/guides/storage/security/access-control.mdx
@@ -59,7 +59,7 @@ for insert
to authenticated
with check (
bucket_id = 'my_bucket_id' and
- storage.foldername(name)[1] = 'private'
+ (storage.foldername(name))[1] = 'private'
);
```
@@ -72,7 +72,7 @@ for insert
to authenticated
with check (
bucket_id = 'my_bucket_id' and
- storage.foldername(name)[1] = auth.uid()
+ (storage.foldername(name))[1] = auth.uid()::text
);
```