Skip to content

Commit 683c1b5

Browse files
authored
[Documentation] Fix owner_id type (supabase#40251)
Fix owner_id type If you don't type cast you'll encounter the following error: ``` Error: ERROR: 42883: operator does not exist: text = uuid HINT: No operator matches the given name and argument types. You might need to add explicit type casts. ``` This should fix it.
1 parent ddd1dbc commit 683c1b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/docs/content/guides/storage/security/ownership.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ on storage.objects
3232
for delete
3333
to authenticated
3434
using (
35-
owner_id = (select auth.uid())
35+
owner_id = (select auth.uid()::text)
3636
);
3737
```
3838

0 commit comments

Comments
 (0)