Skip to content

Commit

Permalink
Update access-control.mdx (type cast owner_id to uuid) (supabase#30705)
Browse files Browse the repository at this point in the history
  • Loading branch information
sojs-coder authored Nov 28, 2024
1 parent 2942a1e commit 8ece6da
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ Allow a user to access a file that was previously uploaded by the same user:
create policy "Individual user Access"
on storage.objects for select
to authenticated
using ( (select auth.uid()) = owner_id );
using ( (select auth.uid()) = owner_id::uuid );
```

---
Expand Down

0 comments on commit 8ece6da

Please sign in to comment.