Skip to content

Commit 8ece6da

Browse files
authored
Update access-control.mdx (type cast owner_id to uuid) (supabase#30705)
1 parent 2942a1e commit 8ece6da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/docs/content/guides/storage/security/access-control.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ Allow a user to access a file that was previously uploaded by the same user:
8080
create policy "Individual user Access"
8181
on storage.objects for select
8282
to authenticated
83-
using ( (select auth.uid()) = owner_id );
83+
using ( (select auth.uid()) = owner_id::uuid );
8484
```
8585

8686
---

0 commit comments

Comments
 (0)